gpt-image-2 image tasks, and submit grok-imagine-video video tasks.
We recommend using the asynchronous workflow for both image and video generation: submit a task, then poll the task endpoint for the result.
Quickstart
Use one curl command to verify authentication and make your first chat request.
Chat completions
Call GPT, Claude, and other text models through the OpenAI-compatible protocol.
Anthropic Messages
Use the native Anthropic protocol to call the full Claude model family.
Text to image / gpt-image-2
Generate and edit images at 1K, 2K, or 4K, with asynchronous task retrieval.
Text to video / grok-imagine-video
Generate 6- to 20-second videos from text or reference images.
IDE / CLI integrations
Connect Claude Code, Codex CLI, Cursor, Continue, Cherry Studio, and more.
Base URL
DimiLinks provides two domains, one for each protocol family:| Protocol family | Base URL | Supported SDKs / clients |
|---|---|---|
| OpenAI-compatible | https://dimilinks.com/v1 | OpenAI SDK, Codex CLI, and the OpenAI providers in Cursor and Continue |
| Native Anthropic | https://api-direct.dimilinks.com/ | Anthropic SDK, Claude Code, and the Anthropic provider in Cherry Studio |
dimilinks.com for OpenAI-style endpoints such as /v1/chat/completions, /v1/images/*, /v1/videos/*, and /v1/models. Use api-direct.dimilinks.com for native Anthropic endpoints such as /v1/messages. Both domains use the same Bearer key.
Recommended workflows
Common destinations
| Capability | Page |
|---|---|
| Authentication | Authentication |
| List models | List models |
| Select recent models | Model selection and updates |
| Text chat (OpenAI-compatible) | Chat completions |
| Text chat (native Anthropic) | Anthropic Messages |
| Generate images | Create image generation |
| Edit images | Create image edit |
| Generate videos | Create video generation |
| Retrieve tasks | Retrieve image task |
| Claude Code integration | Claude Code |
| Codex / Cursor / IDE integrations | Codex CLI · VS Code and other IDEs |
| One-click import into local clients | CC Switch / Cherry Studio |
| Error format | Errors |