/v1/models
Query current callable model IDs before integrating. ChatGPT model IDs follow this list.
Integration guide for the IWKey unified gateway: available models, quick start, endpoints, code examples, SDK setup, and FAQ.
One place for Claude, ChatGPT, image, and visual model endpoints, model ID lookup, and status; see the models page for the full catalog.
Model IDs are sourced from GET /v1/models. Live pricing, groups, and available endpoints for the public site live on the model market; the docs center keeps only integration rules and key entry points.
API definition: /docs/openapi.json. Model details follow live /v1/models and the model market.
Log in to the console to create an API key. Bank transfer and VAT invoice supported.
Text models swap the SDK base URL; image generation uses /v1/images/generations; visual models submit tasks through /videos/v1/videos/generations.
Text and image requests return in real time; visual tasks are polled until complete, then results can be downloaded and roll up into usage records.
/v1/modelsQuery current callable model IDs before integrating. ChatGPT model IDs follow this list.
/v1/chat/completionsOpenAI-compatible endpoint. After swapping the base URL, the OpenAI SDK, Cursor, Codex CLI, opencode, and LangChain can all call through here.
/v1/messagesAnthropic Messages-native endpoint. Claude Code and the Anthropic SDK can switch directly to the IWKey base URL.
/v1/images/generationsOpenAI-compatible image generation endpoint. gpt-image-2 offers two fidelity tiers, billed per image; output size is fixed (the size parameter has no effect), and fidelity is fixed by the selected tier.
/videos/v1/videos/generationsVisual model async task endpoint. Submit a prompt, duration, resolution, and aspect ratio to receive a job_id and poll_url.
/videos/v1/videos/jobs/{job_id}Prefer the poll_url returned by submission; it provides task status, completed output, failure details, and the video download URL.
Advanced text capabilities, image generation, and visual model async task examples — each scenario shown in cURL / Python / JavaScript.
| Parameter | Type | Description |
|---|---|---|
model |
string | doubao-seedance-2.0 or doubao-seedance-2.0-fast |
prompt |
string | Text prompt, required |
duration |
integer | Duration in seconds, range 4–15 |
resolution |
string | 480p / 720p / 1080p (fast does not support 1080p) |
image_urls |
array ≤9 | Reference images. Each item is either a URL string (default role = first_frame, image-to-video) or an object {"url":"…","role":"first_frame|last_frame|reference_image"} |
video_urls |
array ≤3 | Reference videos |
audio_urls |
array ≤3 | Reference audio; cannot be used alone — must pair with a role:"reference_image" image or video_urls; first/last-frame images cannot be combined with audio |
generate_audio |
boolean | Whether output includes audio, default false |
Billing: settled per task; on success, reconciled against upstream usage.total_tokens with a credit or charge adjustment; failed tasks are fully refunded.
| Parameter | Type | Description |
|---|---|---|
model |
string | gpt-image-2, required |
prompt |
string | Text description, required |
size |
string | Optional, accepted only for OpenAI SDK compatibility — currently has no effect on the output. Both tiers produce the same output size, approximately 1536×1024px. |
quality |
string | Optional, accepts low/medium/high — fidelity is fixed by the selected tier (Standard = medium, Fine = high); a value sent in the request does not override the tier. |
Billing: billed per image, Standard / Fine fidelity tiers; synchronous request, no streaming; full pricing on the model market · gpt-image-2.
The platform provides only official standard model IDs — suffix variants like -thinking/-high/-low are not offered. Reasoning is controlled via API parameters — Anthropic uses the thinking object, OpenAI uses reasoning_effort.
ANTHROPIC_BASE_URL must stop at the hostname https://iwkey.com — do not add /v1 (unlike OpenAI; adding it would form /v1/v1/messages → 404)/v1 (Cursor appends /chat/completions directly to this OpenAI-protocol endpoint — unlike Claude Code's ANTHROPIC_BASE_URL, which does not take /v1)base_url must stop at /v1 — do not add /chat/completions, or Codex will build a bad path and return 404gpt-5.5. Codex uses the Responses API (not chat/completions) — declare wire_api = "responses" in config.tomloptions.baseURL must include /v1 — @ai-sdk/openai-compatible appends /chat/completions directly and does not add /v1 for yourequest_id, OpenAI's id and system_fingerprint), identical to a direct upstream call. You can also visit the transparency page to inspect the database schema and confirm we do not store any prompt or response content.
"stream": true in the request. Image generation is a synchronous request and does not stream. Visual models are not streaming responses; after submission, prefer the response's poll_url. Its current canonical path is /videos/v1/videos/jobs/{job_id}.
POST /videos/v1/videos/generations. The response returns job_id and poll_url. After the task completes, check the polling response or "Visual model usage detail" for the result, download URL, and failure reason.
-thinking/-high/-low are not offered. Reasoning depth is controlled via API parameters:
"thinking": {"type": "enabled", "budget_tokens": 10000} to the request body (budget: 1024–100000 tokens). max_tokens must exceed budget_tokens. Supported models: claude-opus-4-7, claude-opus-4-8, and others."reasoning_effort": "high" to the request body (options: low/medium/high). Supported models: gpt-5.5 and others — check GET /v1/models to confirm./v1/messages format and mark cache_control breakpoints in the messages or system prompt. Note: the OpenAI-compatible /v1/chat/completions format does not support Claude prompt caching — every request is billed at full input price. Caching is unnecessary for one-off or always-different requests.