Anthropic compatible APIs
Open API |
Request method |
Request path |
Description |
|---|---|---|---|
| Create a message | POST | /api/anthropic/v1/messages |
Anthropic message creation |
| List Anthropic models | GET | /api/anthropic/v1/models |
Query Anthropic model list |
| Create a message (default base) | POST | /api/v1/messages |
Anthropic message creation (default base URL) |
OpenAI compatible APIs
Open API |
Request method |
Request path |
Description |
|---|---|---|---|
| Create chat completion | POST | /api/v1/chat/completions |
OpenAI chat completions |
| Create embedding | POST | /api/v1/embeddings |
OpenAI embeddings |
| List models | GET | /api/v1/models |
Query OpenAI compatible model list |
| Rerank | POST | /api/v1/rerank |
Rerank |
| Reranks | POST | /api/v1/reranks |
Rerank |
| Create response | POST | /api/v1/responses |
OpenAI responses |
Vertex AI compatible APIs
Open API |
Request method |
Request path |
Description |
|---|---|---|---|
| Generate content | POST | /api/vertex-ai/v1/publishers/{provider}/models/{model}:generateContent |
Vertex AI generated content |
| Stream generate content | POST | /api/vertex-ai/v1/publishers/{provider}/models/{model}:streamGenerateContent |
Vertex AI stream-generated content |
Model router image and video APIs
Open API |
Request method |
Request path |
Description |
|---|---|---|---|
| Create image generation | POST | /api/v1/images/generations |
OpenAI compatible image generation (can be asynchronous) |
| Create video generation | POST | /api/v1/videos/generations |
Video generation (asynchronous,X-Async: enable) |
| Retrieve task status | GET | /api/v1/tasks/{task_id} |
Query the status of an image or video asynchronous generation task |
OpenAI compatible batches and files APIs
Open API |
Request method |
Request path |
Description |
|---|---|---|---|
| Upload file | POST | /api/v1/files |
Upload a batch file |
| List files | GET | /api/v1/files |
Query batch file list |
| Retrieve file | GET | /api/v1/files/{file_id} |
Query batch file information |
| Delete file | DELETE | /api/v1/files/{file_id} |
Delete a batch file |
| Get file content | GET | /api/v1/files/{file_id}/content |
Get batch file content |
| Get file content (POST) | POST | /api/v1/files/{file_id}/content |
Get batch file content |
| Create batch | POST | /api/v1/batches |
Create a batch task |
| List batches | GET | /api/v1/batches |
Query batch task list |
| Retrieve batch | GET | /api/v1/batches/{batch_id} |
Query a batch task |
| Retrieve batch (POST) | POST | /api/v1/batches/{batch_id} |
Query a batch task |
| Cancel batch | POST | /api/v1/batches/{batch_id}/cancel |
Cancel a batch task |
