Skip to main content
DimiLinks provides a unified API that follows familiar OpenAI and Anthropic conventions. A single Bearer key lets you call text models including Claude and GPT, submit 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 familyBase URLSupported SDKs / clients
OpenAI-compatiblehttps://dimilinks.com/v1OpenAI SDK, Codex CLI, and the OpenAI providers in Cursor and Continue
Native Anthropichttps://api-direct.dimilinks.com/Anthropic SDK, Claude Code, and the Anthropic provider in Cherry Studio
Use 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.
POST https://dimilinks.com/v1/chat/completions          # Chat (OpenAI-compatible; recommended for coding)
POST https://api-direct.dimilinks.com/v1/messages       # Chat (native Anthropic protocol)
POST https://dimilinks.com/v1/images/generations?async=true  # Image: asynchronous submission
POST https://dimilinks.com/v1/videos/generations             # Video: asynchronous submission (asynchronous by default)
GET  https://dimilinks.com/v1/tasks/{task_id}                # Shared image / video task retrieval

Common destinations

CapabilityPage
AuthenticationAuthentication
List modelsList models
Select recent modelsModel selection and updates
Text chat (OpenAI-compatible)Chat completions
Text chat (native Anthropic)Anthropic Messages
Generate imagesCreate image generation
Edit imagesCreate image edit
Generate videosCreate video generation
Retrieve tasksRetrieve image task
Claude Code integrationClaude Code
Codex / Cursor / IDE integrationsCodex CLI · VS Code and other IDEs
One-click import into local clientsCC Switch / Cherry Studio
Error formatErrors