
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini
Pricing
$19.99/month + usage

OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini
Use the OpenRouter platform to choose the best and most cost effective model for your prompts utilizing a standardized interface (including ChatGPT, Claude, Gemini, Llama, Mistral, and more). See instructions for creating an OpenRouter account and API key.
0.0 (0)
Pricing
$19.99/month + usage
9
Monthly users
5
Runs succeeded
90%
Response time
2.2 hours
Last modified
7 months ago
You can access the OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "0.0",
5 "x-build-id": "ASWnfHXYBx0wgve3d"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/xyzzy~open-router/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-xyzzy-open-router",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/xyzzy~open-router/runs": {
50 "post": {
51 "operationId": "runs-sync-xyzzy-open-router",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/xyzzy~open-router/run-sync": {
93 "post": {
94 "operationId": "run-sync-xyzzy-open-router",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "required": [
134 "api_key",
135 "messages",
136 "model"
137 ],
138 "properties": {
139 "api_key": {
140 "title": "API Key",
141 "type": "string",
142 "description": "Your OpenRouter API key."
143 },
144 "messages": {
145 "title": "Messages",
146 "type": "array",
147 "description": "An array of messages to send to the model",
148 "default": [
149 "Why is the sky blue?"
150 ],
151 "items": {
152 "type": "string"
153 }
154 },
155 "model": {
156 "title": "Model",
157 "type": "string",
158 "description": "Model specification",
159 "default": "openrouter/auto"
160 },
161 "response_format": {
162 "title": "Response Format",
163 "enum": [
164 "json_object"
165 ],
166 "type": "string",
167 "description": "Response format type"
168 },
169 "stop": {
170 "title": "Stop",
171 "type": "array",
172 "description": "Stop sequence for the model",
173 "items": {
174 "type": "string"
175 }
176 },
177 "max_tokens": {
178 "title": "Max Tokens",
179 "minimum": 1,
180 "type": "integer",
181 "description": "Maximum number of tokens for model response"
182 },
183 "temperature": {
184 "title": "Temperature",
185 "type": "string",
186 "description": "Sampling temperature (e.g., '1.0')"
187 },
188 "top_p": {
189 "title": "Top P",
190 "type": "string",
191 "description": "Nucleus sampling probability threshold (e.g., '1.0')"
192 },
193 "top_k": {
194 "title": "Top K",
195 "type": "string",
196 "description": "Top-k sampling value (e.g., '1')"
197 },
198 "frequency_penalty": {
199 "title": "Frequency Penalty",
200 "type": "string",
201 "description": "Frequency penalty (e.g., '0.0')"
202 },
203 "presence_penalty": {
204 "title": "Presence Penalty",
205 "type": "string",
206 "description": "Presence penalty (e.g., '0.0')"
207 },
208 "repetition_penalty": {
209 "title": "Repetition Penalty",
210 "type": "string",
211 "description": "Repetition penalty (e.g., '1.0')"
212 },
213 "seed": {
214 "title": "Random Seed",
215 "type": "integer",
216 "description": "Random seed for reproducibility"
217 }
218 }
219 },
220 "runsResponseSchema": {
221 "type": "object",
222 "properties": {
223 "data": {
224 "type": "object",
225 "properties": {
226 "id": {
227 "type": "string"
228 },
229 "actId": {
230 "type": "string"
231 },
232 "userId": {
233 "type": "string"
234 },
235 "startedAt": {
236 "type": "string",
237 "format": "date-time",
238 "example": "2025-01-08T00:00:00.000Z"
239 },
240 "finishedAt": {
241 "type": "string",
242 "format": "date-time",
243 "example": "2025-01-08T00:00:00.000Z"
244 },
245 "status": {
246 "type": "string",
247 "example": "READY"
248 },
249 "meta": {
250 "type": "object",
251 "properties": {
252 "origin": {
253 "type": "string",
254 "example": "API"
255 },
256 "userAgent": {
257 "type": "string"
258 }
259 }
260 },
261 "stats": {
262 "type": "object",
263 "properties": {
264 "inputBodyLen": {
265 "type": "integer",
266 "example": 2000
267 },
268 "rebootCount": {
269 "type": "integer",
270 "example": 0
271 },
272 "restartCount": {
273 "type": "integer",
274 "example": 0
275 },
276 "resurrectCount": {
277 "type": "integer",
278 "example": 0
279 },
280 "computeUnits": {
281 "type": "integer",
282 "example": 0
283 }
284 }
285 },
286 "options": {
287 "type": "object",
288 "properties": {
289 "build": {
290 "type": "string",
291 "example": "latest"
292 },
293 "timeoutSecs": {
294 "type": "integer",
295 "example": 300
296 },
297 "memoryMbytes": {
298 "type": "integer",
299 "example": 1024
300 },
301 "diskMbytes": {
302 "type": "integer",
303 "example": 2048
304 }
305 }
306 },
307 "buildId": {
308 "type": "string"
309 },
310 "defaultKeyValueStoreId": {
311 "type": "string"
312 },
313 "defaultDatasetId": {
314 "type": "string"
315 },
316 "defaultRequestQueueId": {
317 "type": "string"
318 },
319 "buildNumber": {
320 "type": "string",
321 "example": "1.0.0"
322 },
323 "containerUrl": {
324 "type": "string"
325 },
326 "usage": {
327 "type": "object",
328 "properties": {
329 "ACTOR_COMPUTE_UNITS": {
330 "type": "integer",
331 "example": 0
332 },
333 "DATASET_READS": {
334 "type": "integer",
335 "example": 0
336 },
337 "DATASET_WRITES": {
338 "type": "integer",
339 "example": 0
340 },
341 "KEY_VALUE_STORE_READS": {
342 "type": "integer",
343 "example": 0
344 },
345 "KEY_VALUE_STORE_WRITES": {
346 "type": "integer",
347 "example": 1
348 },
349 "KEY_VALUE_STORE_LISTS": {
350 "type": "integer",
351 "example": 0
352 },
353 "REQUEST_QUEUE_READS": {
354 "type": "integer",
355 "example": 0
356 },
357 "REQUEST_QUEUE_WRITES": {
358 "type": "integer",
359 "example": 0
360 },
361 "DATA_TRANSFER_INTERNAL_GBYTES": {
362 "type": "integer",
363 "example": 0
364 },
365 "DATA_TRANSFER_EXTERNAL_GBYTES": {
366 "type": "integer",
367 "example": 0
368 },
369 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
370 "type": "integer",
371 "example": 0
372 },
373 "PROXY_SERPS": {
374 "type": "integer",
375 "example": 0
376 }
377 }
378 },
379 "usageTotalUsd": {
380 "type": "number",
381 "example": 0.00005
382 },
383 "usageUsd": {
384 "type": "object",
385 "properties": {
386 "ACTOR_COMPUTE_UNITS": {
387 "type": "integer",
388 "example": 0
389 },
390 "DATASET_READS": {
391 "type": "integer",
392 "example": 0
393 },
394 "DATASET_WRITES": {
395 "type": "integer",
396 "example": 0
397 },
398 "KEY_VALUE_STORE_READS": {
399 "type": "integer",
400 "example": 0
401 },
402 "KEY_VALUE_STORE_WRITES": {
403 "type": "number",
404 "example": 0.00005
405 },
406 "KEY_VALUE_STORE_LISTS": {
407 "type": "integer",
408 "example": 0
409 },
410 "REQUEST_QUEUE_READS": {
411 "type": "integer",
412 "example": 0
413 },
414 "REQUEST_QUEUE_WRITES": {
415 "type": "integer",
416 "example": 0
417 },
418 "DATA_TRANSFER_INTERNAL_GBYTES": {
419 "type": "integer",
420 "example": 0
421 },
422 "DATA_TRANSFER_EXTERNAL_GBYTES": {
423 "type": "integer",
424 "example": 0
425 },
426 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
427 "type": "integer",
428 "example": 0
429 },
430 "PROXY_SERPS": {
431 "type": "integer",
432 "example": 0
433 }
434 }
435 }
436 }
437 }
438 }
439 }
440 }
441 }
442}
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients:
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini API in Python
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini API in JavaScript
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini API through CLI
OpenRouter - Unified LLM Interface for ChatGPT, Claude, Gemini API
Pricing
Pricing model
RentalTo use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.
Free trial
1 day
Price
$19.99