Wide LabsCompute
Get started

Wide Labs Compute API

One API key for chat, image, video, speech and embedding models, multi-model workflows and rentable GPU machines. Chat follows the OpenAI and Anthropic formats, so the official SDKs work unchanged.

Base URL

All endpoints live under one host. Paths start with /v2.

Base URL
https://api.widelabs.tr

Endpoints at a glance

CategoryEndpointNotes
Chat (OpenAI)POST /v2/openai/v1/chat/completionsStreaming, tools, Auto Router
Chat (Anthropic)POST /v2/anthropic/v1/messagesStreaming, prompt caching
EmbeddingsPOST /v2/openai/v1/embeddingsOpenAI-compatible
ImagesPOST /v2/image/{route}/generateSynchronous by default
VideoPOST /v2/video/{route}/…Asynchronous by default
AudioPOST /v2/audio/{route}/generate, /v2/audio/asr/whisperSpeech, music, transcription
TasksGET /v2/tasks/{task_id}No auth header needed
WorkflowsGET /v2/workflows, POST /v2/workflows/{id}/runMulti-model chains
FilesPOST /v2/filesHost inputs, get a reusable link
InstancesGET /v2/instances/catalog, POST /v2/instancesGPU, NPU and CPU machines
Models & pricingGET /v2/models, GET /v2/pricingLive list and list prices
Get started

Quickstart

Create a key, set it as an environment variable and send a chat request. The same key works for every other endpoint.

1. Get a key

Create an account, add credit, then open Dashboard → API keys and create a key. Keys look like wl_sk_…. Keep them on your server; never ship a key in a browser or mobile app.

Shell
export WIDELABS_API_KEY="wl_sk_..."

2. Send a request

curl https://api.widelabs.tr/v2/openai/v1/chat/completions \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/DeepSeek-V4-Flash",
    "messages": [{"role": "user", "content": "Say hello in five words."}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.widelabs.tr/v2/openai/v1",
    api_key=os.environ["WIDELABS_API_KEY"],
)
resp = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash",
    messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.widelabs.tr/v2/openai/v1",
  apiKey: process.env.WIDELABS_API_KEY,
});
const resp = await client.chat.completions.create({
  model: "deepseek-ai/DeepSeek-V4-Flash",
  messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(resp.choices[0].message.content);

3. Try another modality

Generate an image with the same key:

cURL
curl -X POST https://api.widelabs.tr/v2/image/flux/generate \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A red fox in an autumn forest", "width": 1024, "height": 1024}'
NextBrowse Models & pricing for every model ID and the route it uses.
Get started

Authentication

Send your API key on every request, in either header. Both are accepted on every route.

Headers
Authorization: Bearer wl_sk_...
# or
X-API-Key: wl_sk_...

Keys and balance

  • Create as many keys as you need, for example one per app or environment. They all draw on your account balance.
  • Revoke a key in the dashboard at any time; it stops working immediately.
  • When the balance reaches zero, requests return 402 INSUFFICIENT_CREDITS until you add credit. Nothing runs up a bill.

Polling without a key

GET /v2/tasks/{task_id} and GET /v2/workflows/runs/{run_id} need no auth header. The ID is long and unguessable and acts as the access token, so treat it like a secret.

Keep keys server-sideAnyone holding a key can spend your balance. Rotate a key immediately if it leaks.
Models

Chat

Two chat endpoints, one per API format. Point the official OpenAI or Anthropic SDK at Wide Labs Compute and it works unchanged.

FormatEndpointSDK base URLStreaming
OpenAIPOST /v2/openai/v1/chat/completionshttps://api.widelabs.tr/v2/openai/v1Yes
AnthropicPOST /v2/anthropic/v1/messageshttps://api.widelabs.tr/v2/anthropicYes

GPT, Gemini, DeepSeek, Qwen, Kimi, GLM, Grok, Gemma and Nemotron models use the OpenAI route. Claude models use the Anthropic route.

OpenAI format

cURL · streaming
curl -N https://api.widelabs.tr/v2/openai/v1/chat/completions \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-5.5", "stream": true,
       "messages": [{"role": "user", "content": "Explain the CAP theorem with one example."}]}'

Anthropic format

Python
import anthropic, os

client = anthropic.Anthropic(
    base_url="https://api.widelabs.tr/v2/anthropic",
    api_key=os.environ["WIDELABS_API_KEY"],
)
msg = client.messages.create(
    model="anthropic/claude-sonnet-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

Parameters worth knowing

  • reasoning_effort on the OpenAI route takes none, low, medium, high, xhigh or max. Each model honours what it supports.
  • Claude 4.8 and newer reject temperature, top_p and top_k with 422. Steer with the prompt instead.
  • Cached input is billed at the lower cached input price shown in the catalog. Some models charge a higher rate above a long-context threshold.
Models

Auto Router

Send "model": "widelabs/auto" on the OpenAI route and each request is served by the cheapest model that fits the kind of task and its difficulty.

  • Same endpoint, same SDK. Only the model name changes.
  • You stay in control. Limit the candidates, set a use case, and lean towards cost or quality.
  • Every pick is explained. The response carries a routing receipt with the model that answered and why.
  • Billing is the served model's. You pay that model's list price, as if you had called it directly.
cURL
curl https://api.widelabs.tr/v2/openai/v1/chat/completions \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "widelabs/auto",
       "messages": [{"role": "user", "content": "Write a Python function that merges two sorted lists."}],
       "routing": {"usecase": "code", "objective": "balanced"}}'

With the OpenAI Python SDK, pass routing through extra_body, since it is not an OpenAI parameter.

Routing errors

StatusCodeWhen
422ROUTING_ON_FIXED_MODELrouting sent with a model other than widelabs/auto
422ROUTING_LIST_TOO_LONGrouting.models holds more than 5 names, or none
422ROUTING_MODEL_UNKNOWNA listed model cannot be routed to
422ROUTING_NO_CANDIDATESNo candidate is left after access and availability
Models

Images

Text-to-image, reference-image editing and upscaling. Image requests return synchronously by default; pass "async": true to get a task ID instead.

POST/v2/image/{route}/generate

Each model family has its own route, for example /v2/image/flux/generate, /v2/image/gemini-3/generate or /v2/image/seedream-5-0-pro/generate. Routes shared by several models take a model field. The full list is in Models & pricing.

cURL
curl -X POST https://api.widelabs.tr/v2/image/gemini-3/generate \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/gemini-nano-banana-2.1",
       "prompt": "Flat illustration of a robot barista, violet and blue palette",
       "aspect_ratio": "1:1", "image_size": "1K"}'

Response

FLUX, GPT Image and Gemini return base64 images in an images array. Decode each string to get the bytes. Gemini also returns finish_reason.

JSON
{
  "images": ["<base64-encoded PNG>"],
  "finish_reason": "STOP"
}

Editing with reference images

Pass image (one) or images (several) as base64, a data URI or a link from Files. Without them the request is text-to-image.

Content declinesWhen a model refuses a prompt or a reference image, the response is 422 CONTENT_POLICY_DECLINED. This is the model's own decision. Borderline prompts can succeed on a retry.
Models

Video

Text-, image- and video-to-video. Generation takes 2 to 20 minutes, so video requests are asynchronous by default: you get a task ID immediately and poll for the result, or receive a webhook.

1 · Submit
curl -X POST https://api.widelabs.tr/v2/video/kling-3/i2v \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image": "https://cdn.widelabs.tr/content/...",
       "prompt": "Slow dolly forward down the aisle",
       "duration": 5, "quality_mode": "pro"}'

# → 202 {"task_id": "direct:abc123...", "status": "queued", "poll_url": "/v2/tasks/direct:abc123..."}
2 · Poll
curl "https://api.widelabs.tr/v2/tasks/direct:abc123...?wait=30"

# → {"status": "completed", "result": {"urls": ["https://cdn.widelabs.tr/content/..."]}}
  • Kling, Seedance, Veo and HappyHorse return links in urls; Wan returns them in videos.
  • Source videos and audio are taken by URL only. Upload local files with Files first.
  • Prices are per second of output and depend on resolution and, for some models, sound. See Models & pricing.
Models

Audio

Text-to-speech, transcription and music generation.

Text-to-speech

POST/v2/audio/tts-1/generate

widelabs/tts-1 and widelabs/tts-1-turbo speak every supported language in 18 voices. Square-bracket tags such as [warmly] or [whispers] steer the delivery.

cURL
curl -X POST https://api.widelabs.tr/v2/audio/tts-1/generate \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "[warmly] Welcome aboard.", "voice": "nova", "output_format": "mp3_44100_128"}'
VoicesNative accent
atlas sageBritish English
nova orion lyra coleAmerican English
kai wrenAustralian English
river miraIndian English
deniz egeTurkish
felix · celine · sol leon · noor · hanaGerman · French · Spanish · Arabic · Japanese

Transcription

POST/v2/audio/asr/whisper

Send an audio file URL with model set to widelabs/stt-1 (billed per minute) or openai/gpt-4o-mini-transcribe (billed per token).

Music

widelabs/music-1 generates music from a text prompt, billed per second of audio.

Models

Embeddings

Vectors for search, retrieval-augmented generation and clustering, on the OpenAI-compatible route.

POST/v2/openai/v1/embeddings
Python
vec = client.embeddings.create(
    model="openai/text-embedding-3-small",
    input=["İzmir is on the Aegean coast.", "Ankara is the capital."],
)
print(len(vec.data[0].embedding))
Models

Models & pricing

Every model, the route it uses and its list price in USD, excluding VAT. Read the live list from GET /v2/models and prices from GET /v2/pricing rather than hard-coding them.

Model IDEndpointPrice
anthropic/claude-opus-5-5
Claude Opus 5.5 · Anthropic
/v2/anthropic/v1/messages$4.00 in · $20.00 out /1M
anthropic/claude-sonnet-5-5
Claude Sonnet 5.5 · Anthropic
/v2/anthropic/v1/messages$2.00 in · $10.00 out /1M
openai/gpt-6.2-sol
GPT-6.2 Sol · OpenAI
/v2/openai/v1/chat/completions$2.00 in · $10.00 out /1M
google/gemini-4-argon
Gemini 4 Argon · Google
/v2/openai/v1/chat/completions$4.00 in · $20.00 out /1M
deepseek-ai/DeepSeek-V4.1-Flash
DeepSeek V4.1 Flash · DeepSeek
/v2/openai/v1/chat/completions$0.24 in · $0.95 out /1M
openai/gpt-6.2-astra
GPT-6.2 Astra · OpenAI
/v2/openai/v1/chat/completions$8.00 in · $40.00 out /1M
moonshotai/kimi-k3.1-pro
Kimi K3.1 Pro · Moonshot
/v2/openai/v1/chat/completions$2.00 in · $10.00 out /1M
zai-org/glm-5.3
GLM 5.3 · Z.ai
/v2/openai/v1/chat/completions$1.14 in · $4.00 out /1M
Qwen/Qwen3.8-Max
Qwen3.8 Max · Qwen
/v2/openai/v1/chat/completions$1.72 in · $5.15 out /1M
google/gemini-4-hydrogen
Gemini 4 Hydrogen · Google
/v2/openai/v1/chat/completions$1.50 in · $7.50 out /1M
anthropic/claude-haiku-5-5
Claude Haiku 5.5 · Anthropic
/v2/anthropic/v1/messages$0.10 in · $0.50 out /1M
x-ai/grok-4.3
Grok 4.3 · xAI
/v2/openai/v1/chat/completions$1.25 in · $2.50 out /1M
anthropic/claude-fable-5-2
Claude Fable 5.2 · Anthropic
/v2/anthropic/v1/messages$8.00 in · $40.00 out /1M
openai/gpt-6-luna
GPT-6 Luna · OpenAI
/v2/openai/v1/chat/completions$0.10 in · $0.50 out /1M
openai/gpt-6.1-terra
GPT-6.1 Terra · OpenAI
/v2/openai/v1/chat/completions$1.00 in · $5.00 out /1M
deepseek-ai/DeepSeek-V4-Pro
DeepSeek V4 Pro · DeepSeek
/v2/openai/v1/chat/completions$1.36 in · $3.19 out /1M
zai-org/glm-5.3-flash
GLM 5.3 Flash · Z.ai
/v2/openai/v1/chat/completions$0.12 in · $0.40 out /1M
widelabs/auto
Auto Router · Wide Labs
/v2/openai/v1/chat/completionsBilled at the served model’s list price
openai/gpt-5.5
GPT-5.5 · OpenAI
/v2/openai/v1/chat/completions$5.00 in · $30.00 out /1M
Qwen/Qwen3.6-Plus
Qwen3.6 Plus · Qwen
/v2/openai/v1/chat/completions$0.28 in · $1.68 out /1M
google/gemma-4-31B-turbo
Gemma 4 31B Turbo · Google
/v2/openai/v1/chat/completions$0.15 in · $0.42 out /1M
anthropic/claude-sonnet-5
Claude Sonnet 5 · Anthropic
/v2/anthropic/v1/messages$2.00 in · $10.00 out /1M
anthropic/claude-sonnet-4-6
Claude Sonnet 4.6 · Anthropic
/v2/anthropic/v1/messages$3.00 in · $15.00 out /1M
anthropic/claude-opus-5
Claude Opus 5 · Anthropic
/v2/anthropic/v1/messages$5.00 in · $25.00 out /1M
anthropic/claude-opus-4-8
Claude Opus 4.8 · Anthropic
/v2/anthropic/v1/messages$5.00 in · $25.00 out /1M
anthropic/claude-opus-4-7
Claude Opus 4.7 · Anthropic
/v2/anthropic/v1/messages$5.00 in · $25.00 out /1M
anthropic/claude-opus-4-6
Claude Opus 4.6 · Anthropic
/v2/anthropic/v1/messages$5.00 in · $25.00 out /1M
anthropic/claude-haiku-4-5-20251001
Claude Haiku 4.5 · Anthropic
/v2/anthropic/v1/messages$1.00 in · $5.00 out /1M
anthropic/claude-fable-5-1
Claude Fable 5.1 · Anthropic
/v2/anthropic/v1/messages$10.00 in · $50.00 out /1M
anthropic/claude-fable-5
Claude Fable 5 · Anthropic
/v2/anthropic/v1/messages$10.00 in · $50.00 out /1M
deepseek-ai/DeepSeek-V4-Flash
DeepSeek V4 Flash · DeepSeek
/v2/openai/v1/chat/completions$0.36 in · $1.06 out /1M
google/gemma-4-26b-a4b-it
Gemma 4 26B A4B IT · Google
/v2/openai/v1/chat/completions$0.06 in · $0.33 out /1M
moonshotai/kimi-k3
Kimi K3 · Moonshot
/v2/openai/v1/chat/completions$3.00 in · $15.00 out /1M
moonshotai/kimi-k2.6
Kimi K2.6 · Moonshot
/v2/openai/v1/chat/completions$0.91 in · $3.78 out /1M
nvidia/nemotron-3-nano-30b-a3b
Nemotron 3 Nano 30B A3B · NVIDIA
/v2/openai/v1/chat/completions$0.05 in · $0.20 out /1M
openai/gpt-6.1-sol
GPT-6.1 Sol · OpenAI
/v2/openai/v1/chat/completions$2.00 in · $10.00 out /1M
openai/gpt-6-sol
GPT-6 Sol · OpenAI
/v2/openai/v1/chat/completions$2.00 in · $10.00 out /1M
openai/gpt-6-astra
GPT-6 Astra · OpenAI
/v2/openai/v1/chat/completions$10.00 in · $50.00 out /1M
openai/gpt-5.5-pro
GPT-5.5 Pro · OpenAI
/v2/openai/v1/chat/completions$30.00 in · $180.00 out /1M
openai/gpt-5.4-mini
GPT-5.4 Mini · OpenAI
/v2/openai/v1/chat/completions$0.75 in · $4.50 out /1M
openai/gpt-5.4
GPT-5.4 · OpenAI
/v2/openai/v1/chat/completions$2.50 in · $15.00 out /1M
openai/gpt-4o-mini
GPT-4o Mini · OpenAI
/v2/openai/v1/chat/completions$0.15 in · $0.60 out /1M
Qwen/Qwen3.5-397B-A17B-FP8
Qwen3.5 397B A17B FP8 · Qwen
/v2/openai/v1/chat/completions$0.50 in · $3.00 out /1M
Qwen/Qwen3.5-35B-A3B-GPTQ-Int4
Qwen3.5 35B A3B GPTQ-Int4 · Qwen
/v2/openai/v1/chat/completions$0.10 in · $0.60 out /1M
zai-org/glm-5.3-flashx
GLM 5.3 FlashX · Z.ai
/v2/openai/v1/chat/completions$0.37 in · $1.25 out /1M
zai-org/glm-5.1
GLM 5.1 · Z.ai
/v2/openai/v1/chat/completions$1.12 in · $3.92 out /1M
google/gemini-nano-banana-2.1
Gemini Nano Banana 2.1 · Google
/v2/image/gemini-3/generatefrom $0.034 /image
openai/gpt-image-2
GPT Image 2 · OpenAI
/v2/image/gpt-image-2/generatefrom $0.15 /image
black-forest-labs/FLUX-2-pro
FLUX.2 Pro · Black Forest Labs
/v2/image/flux/generate$0.036 /image
ByteDance/doubao-seedream-5-0-pro-260628
Seedream 5.0 Pro · ByteDance
/v2/image/seedream-5-0-pro/generatefrom $0.043 /image
openai/gpt-image-2.5-sunburst
GPT Image 2.5 Sunburst · OpenAI
/v2/image/gpt-image-2/generate$8.00 in · $30.00 out /1M
google/gemini-3-pro-image
Gemini 3 Pro Image · Google
/v2/image/gemini-3/generatefrom $0.13 /image
Wan-AI/Wan2.7-Image-Pro
Wan 2.7 Image Pro · Alibaba Wan
/v2/image/wan-2-7-image-pro/generate$0.07 /image
openai/gpt-image-2.5-flare
GPT Image 2.5 Flare · OpenAI
/v2/image/gpt-image-2/generate$8.00 in · $30.00 out /1M
ClarityAI/flux
ClarityAI Flux · Clarity AI
/v2/image/clarity/upscale$0.22 /image
ClarityAI/crystal
ClarityAI Crystal · Clarity AI
/v2/image/clarity/upscale$0.055 /image
ClarityAI/creative
ClarityAI Creative · Clarity AI
/v2/image/clarity/upscale$0.055 /image
google/gemini-3.1-flash-image-preview
Gemini 3.1 Flash Image · Google
/v2/image/gemini-3/generatefrom $0.046 /image
google/gemini-2.5-flash-image
Gemini 2.5 Flash Image · Google
/v2/image/gemini-3/generate$0.04 /image
openai/gpt-image-1.5-T2I
GPT Image 1.5 T2I · OpenAI
/v2/image/gpt-image/generate$0.036 /image
openai/gpt-image-1.5-I2I
GPT Image 1.5 I2I · OpenAI
/v2/image/gpt-image/edit$0.04 /image
KlingTeam/v4
Kling v4 · Kling
/v2/video/kling-4/generatefrom $0.16 /sec
ByteDance/doubao-seedance-2-5-260628
Seedance 2.5 · ByteDance
/v2/video/doubao-seedance-2.5/generate$10.90 /1M video tokens
google/veo-3.1-fast-generate-preview
Veo 3.1 Fast · Google
/v2/video/veo-3.1-fast/generatefrom $0.15 /sec
HappyHorse/HappyHorse-1.1-T2V
HappyHorse 1.1 T2V · HappyHorse
/v2/video/happyhorse-1.1/t2vfrom $0.13 /sec
KlingTeam/v3-Omni
Kling v3 Omni · Kling
/v2/video/kling-3/omnifrom $0.084 /sec
MiniMax/MiniMax-H3
MiniMax H3 · MiniMax
/v2/video/minimax-h3/generatefrom $0.072 /sec
ByteDance/doubao-seedance-2-0-fast
Seedance 2.0 Fast · ByteDance
/v2/video/doubao-seedance-2.0-fast/generate$6.40 /1M video tokens
KlingTeam/v3-I2V
Kling v3 I2V · Kling
/v2/video/kling-3/i2vfrom $0.084 /sec
Wan-AI/Wan2.6-T2V
Wan 2.6 T2V · Alibaba Wan
/v2/video/wan-26/t2vfrom $0.055 /sec
HappyHorse/HappyHorse-1.1-I2V
HappyHorse 1.1 I2V · HappyHorse
/v2/video/happyhorse-1.1/i2vfrom $0.13 /sec
Wan-AI/Wan2.5-T2V
Wan 2.5 T2V · Alibaba Wan
/v2/video/wan-25/t2vfrom $0.05 /sec
Wan-AI/Wan2.5-I2V
Wan 2.5 I2V · Alibaba Wan
/v2/video/wan-25/i2vfrom $0.05 /sec
Bria/video_increase_resolution
Bria Video Upscaler · Bria
/v2/video/bria-upscale/generate$0.05 /sec
ByteDance/doubao-seedance-2-5-260628-V2V
Seedance 2.5 V2V · ByteDance
/v2/video/doubao-seedance-2.5-v2v/generate$6.55 /1M video tokens
ByteDance/doubao-seedance-2-0-260128-V2V
Seedance 2.0 V2V · ByteDance
/v2/video/doubao-seedance-2.0-v2v/generatefrom $2.45 /1M video tokens
ByteDance/doubao-seedance-2-0-mini-260615-V2V
Seedance 2.0 Mini V2V · ByteDance
/v2/video/doubao-seedance-2.0-mini-v2v/generate$2.15 /1M video tokens
ByteDance/doubao-seedance-2-0-mini-260615
Seedance 2.0 Mini · ByteDance
/v2/video/doubao-seedance-2.0-mini/generate$3.55 /1M video tokens
ByteDance/doubao-seedance-2-0-fast-V2V
Seedance 2.0 Fast V2V · ByteDance
/v2/video/doubao-seedance-2.0-fast-v2v/generate$3.81 /1M video tokens
ByteDance/doubao-seedance-2-0-260128
Seedance 2.0 · ByteDance
/v2/video/doubao-seedance-2.0/generatefrom $4.10 /1M video tokens
HappyHorse/HappyHorse-1.0-Video-Edit
HappyHorse 1.0 Video Edit · HappyHorse
/v2/video/happyhorse-1.0/video-editfrom $0.13 /sec
HappyHorse/HappyHorse-1.0-T2V
HappyHorse 1.0 T2V · HappyHorse
/v2/video/happyhorse-1.0/t2vfrom $0.13 /sec
HappyHorse/HappyHorse-1.0-R2V
HappyHorse 1.0 R2V · HappyHorse
/v2/video/happyhorse-1.0/r2vfrom $0.13 /sec
HappyHorse/HappyHorse-1.0-I2V
HappyHorse 1.0 I2V · HappyHorse
/v2/video/happyhorse-1.0/i2vfrom $0.13 /sec
KlingTeam/v4-V2V
Kling v4 V2V · Kling
/v2/video/kling-4-v2v/generatefrom $0.19 /sec
KlingTeam/v3-T2V
Kling v3 T2V · Kling
/v2/video/kling-3/t2vfrom $0.084 /sec
KlingTeam/v3-Motion-Control
Kling v3 Motion Control · Kling
/v2/video/kling-3/motion-controlfrom $0.13 /sec
KlingTeam/kling-video-o1
Kling o1 · Kling
/v2/video/kling-o1/generatefrom $0.084 /sec
MiniMax/MiniMax-H3-V2V
MiniMax H3 V2V · MiniMax
/v2/video/minimax-h3-v2v/generatefrom $0.17 /sec
widelabs/tts-1
TTS 1 · Wide Labs
/v2/audio/tts-1/generate$0.08 /1K chars
MiniMax/speech-2.8-hd
MiniMax Speech 2.8 HD · MiniMax
/v2/audio/minimax-speech-2-8-hd/generate$0.049 /1K chars
widelabs/stt-1
STT 1 · Wide Labs
/v2/audio/asr/whisper$0.0037 /min
Qwen/qwen3-tts-flash
Qwen3 TTS Flash · Qwen
/v2/audio/qwen3-tts-flash/generate$0.011 /1K chars
widelabs/tts-1-turbo
TTS 1 Turbo · Wide Labs
/v2/audio/tts-1-turbo/generate$0.04 /1K chars
openai/gpt-4o-mini-transcribe
GPT-4o mini Transcribe · OpenAI
/v2/audio/asr/whisper$1.25 in · $5.00 out /1M
widelabs/music-1
Music 1 · Wide Labs
/v2/audio/music-1/generate$0.15 /min
openai/text-embedding-3-small
Text Embedding 3 Small · OpenAI
/v2/openai/v1/embeddings$0.02 in /1M

How billing works

  • Chat and embeddings: per million input and output tokens; cached input at its own price.
  • Images: per image, by resolution where the model has tiers.
  • Video: per second of output, by resolution and quality; Seedance per million video tokens.
  • Speech: per 1,000 characters. Transcription and music: per minute or second of audio.
  • Output storage beyond one hour (store_output): a small fee per stored file.
Platform

Tasks & webhooks

Long jobs run as tasks: queued → running → completed | failed. Poll them, or have the result pushed to your server.

Polling

GET /v2/tasks/{task_id} needs no auth header. Use the ID literally, including the direct: prefix. Add ?wait=30 to long-poll for up to 30 seconds.

Completed task
{
  "task_id": "direct:abc12345-...",
  "status": "completed",
  "elapsed_seconds": 10,
  "model": "black-forest-labs/FLUX-2-pro",
  "error": null,
  "result": { "images": ["<base64>"], "width": 1024, "height": 1024 }
}

A task's record and its default output links live for one hour after it finishes. Set store_output to wl1d, wl7d or wl30d to keep both for 1, 7 or 30 days.

Webhooks

Add "webhook_url": "https://your-server.example/hook" to an async request. We POST the final payload with an event of task.completed or task.failed.

  • Deliveries are signed with Standard Webhooks: headers webhook-id, webhook-timestamp, webhook-signature.
  • Verify the raw body bytes, reject timestamps more than 5 minutes off, and dedupe on webhook-id: delivery is at least once.
  • On failure, branch on error_code; error is a human-readable string.
Python · verify
from standardwebhooks import Webhook

wh = Webhook("whsec_...")
event = wh.verify(request_body_bytes, request_headers)  # raises if invalid
Platform

Files

Host a file from your machine and get a link that any *_url field accepts. Upload once and reuse it while it lives.

CallWhat it does
POST /v2/filesUpload the raw bytes, or a public URL to copy
GET /v2/files/{file_id}One file: its link, status and time left
GET /v2/filesYour files, newest first
DELETE /v2/files/{file_id}Take the link down now

Images, video and audio up to 100 MB are accepted. A one-hour retention is free; longer retentions carry the same small per-file fee as store_output.

Platform

Workflows

Chain several models in one call. Send your inputs once, get a run_id, and poll it until the chain finishes. Each step is billed at its own model's rate, with no surcharge for chaining.

cURL
curl -X POST https://api.widelabs.tr/v2/workflows/script-voiceover/run \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"messages": [{"role": "user", "content": "One upbeat line about the sea."}], "voice": "Serena"}}'

# → 202 {"run_id": "wf:...", "status": "queued", "poll_url": "/v2/workflows/runs/wf:..."}

Templates

IDWhat it doesSteps
animate-imageImage, then a 5-second clip of itSeedream 5.0 Pro → Kling v3 I2V
animate-upscaleImage, clip, then HD upscaleSeedream → Seedance 2.0 Fast → Bria upscaler
enhance-animateRewrite the idea, render, animateClaude Haiku 5.5 → Seedream → Kling v3 I2V
enhance-imageRewrite the idea, then render itClaude Haiku 5.5 → Nano Banana 2.1
enhance-videoRewrite the idea as a shot, then a clipClaude Haiku 5.5 → Wan 2.6 T2V
gen-editGenerate an image, then edit itNano Banana 2.1 → Nano Banana 2.1
script-voiceoverWrite a short line, then speak itClaude Haiku 5.5 → Qwen3 TTS Flash

Inputs, every step's model access and your balance are checked before the 202, so a run that would fail on step two costs nothing.

Platform

GPU instances

Rent a GPU machine, an NPU container or a CPU server on the same key and wallet you use for inference. You supply your SSH public key; the machine opens to that key alone.

1. Read the catalog

cURL
curl https://api.widelabs.tr/v2/instances/catalog -H "Authorization: Bearer $WIDELABS_API_KEY"

Each row is one rentable machine, identified by its prescription. Today's on-demand rows:

MachineRegionPer hour
16 vCPU, 64 GB RAM, 50 GB disk
no-gpu-amd-any-16vcpu-64gb-50gb
asia$0.60
16 vCPU, 64 GB RAM, 300 GB disk
no-gpu-amd-any-16vcpu-64gb-300gb
asia$0.62
1× RTX 4090 (24 GB), 16 vCPU, 64 GB RAM, 50 GB disk
rtx4090-amd-any-16vcpu-64gb-50gb
asia$1.00
1× RTX 4090 (24 GB), 16 vCPU, 64 GB RAM, 240 GB disk
rtx4090-amd-any-16vcpu-64gb-240gb
asia$1.10
1× RTX 4090 (24 GB), 16 vCPU, 64 GB RAM, 300 GB disk
rtx4090-amd-any-16vcpu-64gb-300gb
asia$1.12
1× T4 (16 GB), 8 vCPU, 32 GB RAM, 300 GB disk
t4-intel-any-8vcpu-32gb-300gb
singapore$1.30
1× V100 (16 GB), 8 vCPU, 64 GB RAM, 300 GB disk
v100-intel-any-8vcpu-64gb-300gb
singapore$5.00
1× Ascend 910B (64 GB NPU), 24 vCPU, 192 GB RAM, 300 GB disk
ascend910b-arm-any-24vcpu-192gb-300gb
asia$6.20
8× Ascend 910B (64 GB NPU), 192 vCPU, 1536 GB RAM, 1000 GB disk
ascend910b-arm-any-192vcpu-1536gb-1000gb
asia$48.50

2. Rent one

cURL
curl -X POST https://api.widelabs.tr/v2/instances \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prescription": "rtx4090-amd-any-16vcpu-64gb-300gb",
       "image": "ubuntu-gpu",
       "ssh_public_key": "ssh-ed25519 AAAAC3Nza... you@laptop"}'

# → 202 {"id": "inst_9f3c...", "status": "requested"}

3. Poll and connect

GET /v2/instances/{id} moves through requested → provisioning → ready → terminating → terminated. At ready it carries the public IP: ssh root@<ip>.

Billing

  • Billing starts when the instance is ready. A request that never gets there costs nothing.
  • Every hour that starts is charged in full; nothing is pro-rated.
  • Your balance must cover at least one hour before a request is accepted. Promo credits do not apply to instances.
H100, H200, B200 and B300Hopper and Blackwell capacity is reserved per cluster rather than rented from the catalog. Size a cluster and we will reply with availability and a quote.
Reference

Errors

Every error response carries the same envelope: a human detail string and an error object with a stable, machine-readable code. Branch on the code, not on the message.

JSON
{
  "detail": "Your balance is below the credit floor.",
  "error": { "code": "INSUFFICIENT_CREDITS", "detail": { "balance_usd": 0.12 } }
}
StatusCodeMeaning
401INVALID_API_KEYThe key is missing, wrong or revoked
402INSUFFICIENT_CREDITSYour balance is used up; add credit in the dashboard
403FEATURE_UNAVAILABLEYour account does not include this feature yet
404MODEL_NOT_FOUNDUnknown model ID for this route
413FILE_TOO_LARGEUploads are limited to 100 MB
422VALIDATION_ERRORA field is wrong; error.detail.field names it
422CONTENT_POLICY_DECLINEDThe model refused the prompt or a reference image
429RATE_LIMITEDPer-minute limit reached; honour Retry-After
502UPSTREAM_ERRORThe model provider failed; retry with backoff

Failed tasks carry the same information as error (string), error_code and error_detail.

Reference

Rate limits

Requests are limited per minute and per account: all your keys share one limit, so adding keys does not add capacity.

New accounts can send 60 requests per minute across all endpoints. Polling GET /v2/tasks/{task_id} does not count. Your current limit is shown in the dashboard.

A 429 RATE_LIMITED response carries Retry-After in seconds. Retry after that time, with exponential backoff and jitter for repeated limits. Need more? Contact us from your dashboard.

Reference

SDKs

Chat runs on the official OpenAI and Anthropic SDKs: set the base URL and your key, nothing else changes. Media endpoints are plain JSON over HTTPS and work with any HTTP client.

LanguageInstallBase URL
Pythonpip install openai anthropichttps://api.widelabs.tr/v2/openai/v1 · https://api.widelabs.tr/v2/anthropic
TypeScriptnpm i openai @anthropic-ai/sdkthe same
Anything elseany HTTP clienthttps://api.widelabs.tr

Every model page shows a ready-to-run example in cURL, Python and Node.js.