hanxiao commited on
Commit
e224ac6
·
verified ·
1 Parent(s): da4bbd1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -19
README.md CHANGED
@@ -71,15 +71,7 @@ Built on [Qwen3-1.7B-Base](https://huggingface.co/Qwen/Qwen3-1.7B-Base) with [Si
71
 
72
  ## Via Jina API
73
 
74
- We provide an OpenAI-compatible API at `https://api-beta-vlm.jina.ai`.
75
-
76
- All requests require a Jina API key in the Authorization header:
77
-
78
- ```bash
79
- Authorization: Bearer YOUR_JINA_API_KEY
80
- ```
81
-
82
- Get your API key at [jina.ai](https://jina.ai).
83
 
84
 
85
  ### Image from URL
@@ -105,7 +97,8 @@ curl https://api-beta-vlm.jina.ai/v1/chat/completions \
105
  }'
106
  ```
107
 
108
- ### Text-only query
 
109
 
110
  ```bash
111
  curl https://api-beta-vlm.jina.ai/v1/chat/completions \
@@ -113,11 +106,18 @@ curl https://api-beta-vlm.jina.ai/v1/chat/completions \
113
  -H "Authorization: Bearer $JINA_API_KEY" \
114
  -d '{
115
  "model": "jina-vlm",
116
- "messages": [{"role": "user", "content": "What is the capital of France?"}]
 
 
 
 
 
 
117
  }'
118
  ```
119
 
120
- ### Local image (base64)
 
121
 
122
  ```bash
123
  curl https://api-beta-vlm.jina.ai/v1/chat/completions \
@@ -125,13 +125,7 @@ curl https://api-beta-vlm.jina.ai/v1/chat/completions \
125
  -H "Authorization: Bearer $JINA_API_KEY" \
126
  -d '{
127
  "model": "jina-vlm",
128
- "messages": [{
129
- "role": "user",
130
- "content": [
131
- {"type": "text", "text": "What is in this image?"},
132
- {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,'$(base64 -i image.jpg)'"}}
133
- ]
134
- }]
135
  }'
136
  ```
137
 
 
71
 
72
  ## Via Jina API
73
 
74
+ We provide an OpenAI-compatible API at `https://api-beta-vlm.jina.ai`. All requests require a Jina API key in the Authorization header, get your API key at [jina.ai](https://jina.ai).
 
 
 
 
 
 
 
 
75
 
76
 
77
  ### Image from URL
 
97
  }'
98
  ```
99
 
100
+
101
+ ### Local image (base64)
102
 
103
  ```bash
104
  curl https://api-beta-vlm.jina.ai/v1/chat/completions \
 
106
  -H "Authorization: Bearer $JINA_API_KEY" \
107
  -d '{
108
  "model": "jina-vlm",
109
+ "messages": [{
110
+ "role": "user",
111
+ "content": [
112
+ {"type": "text", "text": "What is in this image?"},
113
+ {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,'$(base64 -i image.jpg)'"}}
114
+ ]
115
+ }]
116
  }'
117
  ```
118
 
119
+
120
+ ### Text-only query
121
 
122
  ```bash
123
  curl https://api-beta-vlm.jina.ai/v1/chat/completions \
 
125
  -H "Authorization: Bearer $JINA_API_KEY" \
126
  -d '{
127
  "model": "jina-vlm",
128
+ "messages": [{"role": "user", "content": "What is the capital of France?"}]
 
 
 
 
 
 
129
  }'
130
  ```
131