{"openapi":"3.1.0","info":{"title":"OpenAI Next · API — media, chat and speech models","version":"v0.5.4","description":"Generated by NextLabs from real traffic: parameter types, ranges, defaults and descriptions; request examples are requests that actually ran, response examples are recorded. Where several models share a path, the body is a oneOf of their schemas, told apart by `model`. `x-nextlab-models` lists where each parameter goes in the native request and how async tasks finish."},"servers":[{"url":"https://api.openai-next.com"}],"security":[{"bearer":[]}],"tags":[{"name":"Alibaba Qwen","description":"Models by Alibaba Qwen"},{"name":"Anthropic","description":"Models by Anthropic"},{"name":"ByteDance","description":"Models by ByteDance"},{"name":"DeepSeek","description":"Models by DeepSeek"},{"name":"Google","description":"Models by Google"},{"name":"MiniMax","description":"Models by MiniMax"},{"name":"Moonshot AI","description":"Models by Moonshot AI"},{"name":"OpenAI","description":"Models by OpenAI"},{"name":"Suno","description":"Models by Suno"},{"name":"Zhipu AI","description":"Models by Zhipu AI"},{"name":"xAI","description":"Models by xAI"}],"paths":{"/v1/images/generations":{"post":{"operationId":"post_v1_images_generations","tags":["OpenAI","ByteDance"],"summary":"11 models: gpt-image-2.5, gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-2, gpt-image-2-vip, gpt-image-2-c…","x-nextlab-models":[{"model":"gpt-image-2.5","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-2.5-flare","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-2.5-sunburst","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-2","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-2-vip","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-2-c","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-1.5","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"gpt-image-1","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"background","wirePath":"background","in":"body"},{"key":"output_format","wirePath":"output_format","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"doubao-seedream-5-0-pro-260628","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"doubao-seedream-5-0-260128","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"reference_image","wirePath":"image[]","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]},{"model":"dall-e-3","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"prompt","in":"body"},{"key":"size","wirePath":"size","in":"body"},{"key":"quality","wirePath":"quality","in":"body"},{"key":"style","wirePath":"style","in":"body"}],"outputPath":"data[].url (or data[].b64_json)","notes":["Synchronous: the request stays open until the image is ready.","Slow generations can hit Cloudflare 524 timeouts; on the API platform use https://us.api.openai-next.com.","Output links are often temporary; download what you want to keep."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"gpt-image-2.5","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2.5 — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-2.5-flare","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2.5 Flare — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-2.5-sunburst","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2.5 Sunburst — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-2","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2 — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-2-vip","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2 VIP — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-2-c","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 2 C — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-1.5","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 1.5 — Generate"},{"type":"object","properties":{"model":{"const":"gpt-image-1","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1536x1024","1024x1536","auto"],"title":"Size","default":"auto","x-nextlab-key":"size"},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","default":"auto","x-nextlab-key":"quality"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","description":"Optional. Reference images turn this into image-to-image (gateway field `image`).","x-nextlab-key":"reference_image"}},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","default":"auto","x-nextlab-key":"background"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output format","default":"png","x-nextlab-key":"output_format"}},"required":["model","prompt"],"title":"GPT Image 1 — Generate"},{"type":"object","properties":{"model":{"const":"doubao-seedream-5-0-pro-260628","description":"Model ID"},"size":{"type":"string","enum":["2K","4K"],"title":"Resolution","default":"2K","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"title":"Reference images","x-nextlab-key":"reference_image"}},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","prompt"],"title":"Seedream 5.0 Pro — Generate"},{"type":"object","properties":{"model":{"const":"doubao-seedream-5-0-260128","description":"Model ID"},"size":{"type":"string","enum":["2K","4K"],"title":"Resolution","default":"2K","x-nextlab-key":"size"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"image":{"type":"array","items":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"title":"Reference images","x-nextlab-key":"reference_image"}},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","prompt"],"title":"Seedream 5.0 — Generate"},{"type":"object","properties":{"model":{"const":"dall-e-3","description":"Model ID"},"size":{"type":"string","enum":["1024x1024","1792x1024","1024x1792"],"title":"Size","default":"1024x1024","x-nextlab-key":"size"},"prompt":{"type":"string","maxLength":4000,"title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"quality":{"type":"string","enum":["standard","hd"],"title":"Quality","default":"standard","x-nextlab-key":"quality"},"style":{"type":"string","enum":["vivid","natural"],"title":"Style","default":"vivid","x-nextlab-key":"style"}},"required":["model","prompt"],"title":"DALL·E 3 — Generate"}]},"examples":{"gpt-image-2.5.generate":{"summary":"GPT Image 2.5 — Generate (real request)","value":{"model":"gpt-image-2.5","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-2.5-flare.generate":{"summary":"GPT Image 2.5 Flare — Generate (real request)","value":{"model":"gpt-image-2.5-flare","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-2.5-sunburst.generate":{"summary":"GPT Image 2.5 Sunburst — Generate (real request)","value":{"model":"gpt-image-2.5-sunburst","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-2.generate":{"summary":"GPT Image 2 — Generate (real request)","value":{"model":"gpt-image-2","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-2-vip.generate":{"summary":"GPT Image 2 VIP — Generate (real request)","value":{"model":"gpt-image-2-vip","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-2-c.generate":{"summary":"GPT Image 2 C — Generate (real request)","value":{"model":"gpt-image-2-c","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-1.5.generate":{"summary":"GPT Image 1.5 — Generate (real request)","value":{"model":"gpt-image-1.5","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"gpt-image-1.generate":{"summary":"GPT Image 1 — Generate (real request)","value":{"model":"gpt-image-1","size":"1024x1024","quality":"low","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"doubao-seedream-5-0-pro-260628.generate":{"summary":"Seedream 5.0 Pro — Generate (real request)","value":{"model":"doubao-seedream-5-0-pro-260628","size":"2K","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"doubao-seedream-5-0-260128.generate":{"summary":"Seedream 5.0 — Generate (real request)","value":{"model":"doubao-seedream-5-0-260128","size":"2K","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}},"dall-e-3.generate":{"summary":"DALL·E 3 — Generate (real request)","value":{"model":"dall-e-3","size":"1024x1024","prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"b64_json":{"type":"string"},"revised_prompt":{"type":"string"}},"required":["url","b64_json","revised_prompt"]}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"},"prompt_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"integer"},"reasoning_tokens":{"type":"integer"}}},"completion_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer"},"cached_tokens":{"type":"integer"}}},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"cached_tokens":{"type":"integer"}}},"output_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"reasoning_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}}}}}},{"type":"object","properties":{"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"b64_json":{"type":"string"}},"required":["url","b64_json"]}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"},"prompt_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"integer"},"reasoning_tokens":{"type":"integer"}}},"completion_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer"},"cached_tokens":{"type":"integer"}}},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"cached_tokens":{"type":"integer"}}},"output_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"reasoning_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}}}}}},{"type":"object","properties":{"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"usage":{"type":"object","properties":{"total_tokens":{"type":"integer"},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}}}}}},{"type":"object","properties":{"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"revised_prompt":{"type":"string"},"url":{"type":"string"}},"required":["revised_prompt","url"]}},"usage":{"type":"object","properties":{"total_tokens":{"type":"integer"},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}}}}}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"}},"required":["b64_json"]}},"created":{"type":"integer"},"size":{"type":"string"},"usage":{"type":"object","properties":{"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"total_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}},"output_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer"},"image_tokens":{"type":"integer"}}}}}}},{"type":"object","properties":{"created":{"type":"integer"},"background":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"}},"required":["b64_json"]}},"output_format":{"type":"string"},"quality":{"type":"string"},"size":{"type":"string"},"usage":{"type":"object","properties":{"input_tokens":{"type":"integer"},"input_tokens_details":{"type":"object","properties":{"image_tokens":{"type":"integer"},"text_tokens":{"type":"integer"}}},"output_tokens":{"type":"integer"},"output_tokens_details":{"type":"object","properties":{"image_tokens":{"type":"integer"},"text_tokens":{"type":"integer"}}},"total_tokens":{"type":"integer"}}}}},{"type":"object","properties":{"model":{"type":"string"},"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"size":{"type":"string"},"output_format":{"type":"string"}},"required":["url","size","output_format"]}},"usage":{"type":"object","properties":{"input_images":{"type":"integer"},"generated_images":{"type":"integer"},"output_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}}}},{"type":"object","properties":{"model":{"type":"string"},"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"size":{"type":"string"}},"required":["url","size"]}},"usage":{"type":"object","properties":{"generated_images":{"type":"integer"},"output_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}}}}]},"examples":{"gpt-image-2.5.generate":{"summary":"GPT Image 2.5 (recorded 2026-10-11)","value":{"created":1791689174,"data":[{"url":"https://imagefil.scdn.app/public/image/319bbb9bcd5bdd18194ad1792cc242870.png","b64_json":"<base64 2049488 chars>","revised_prompt":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":229,"prompt_tokens_details":{"cached_tokens":0,"reasoning_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"cached_tokens":0},"input_tokens":21,"output_tokens":208,"input_tokens_details":{"text_tokens":21,"cached_tokens":0},"output_tokens_details":{"text_tokens":0,"reasoning_tokens":0,"image_tokens":208}}}},"gpt-image-2.5-flare.generate":{"summary":"GPT Image 2.5 Flare (recorded 2026-10-12)","value":{"created":1791796866,"data":[{"url":"https://imagefil.scdn.app/public/image/beb7ce3dbbbddd18de33d679f34417de0.png","b64_json":"<base64 1427928 chars>"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":1785,"prompt_tokens_details":{"cached_tokens":0,"reasoning_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"cached_tokens":0},"input_tokens":29,"output_tokens":1756,"input_tokens_details":{"text_tokens":29,"cached_tokens":0},"output_tokens_details":{"text_tokens":0,"reasoning_tokens":0,"image_tokens":1756}}}},"gpt-image-2.5-sunburst.generate":{"summary":"GPT Image 2.5 Sunburst (recorded 2026-10-12)","value":{"created":1791796951,"data":[{"url":"https://imagefil.scdn.app/public/image/d2c358cac5bddd18a634d6791f17ab410.png","b64_json":"<base64 1501868 chars>"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":1115,"prompt_tokens_details":{"cached_tokens":0,"reasoning_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"cached_tokens":0},"input_tokens":29,"output_tokens":1086,"input_tokens_details":{"text_tokens":29,"cached_tokens":0},"output_tokens_details":{"text_tokens":0,"reasoning_tokens":0,"image_tokens":1086}}}},"gpt-image-2.generate":{"summary":"GPT Image 2 (recorded 2026-10-11)","value":{"created":1791689218,"data":[{"url":"https://oss.filenest.top/uploads/f3c6be8c-35a6-461e-b040-750b84d68282.png"}],"usage":{"total_tokens":793,"input_tokens":28,"output_tokens":765,"input_tokens_details":{"text_tokens":28,"image_tokens":0}}}},"gpt-image-2-vip.generate":{"summary":"GPT Image 2 VIP (recorded 2026-10-12)","value":{"created":1791796660,"data":[{"revised_prompt":"","url":"https://pro.filesystem.site/cdn/20261012/37cc29af577b4bf4b34192a2c8305635.png"}],"usage":{"total_tokens":4196,"input_tokens":21,"output_tokens":4175,"input_tokens_details":{"text_tokens":21,"image_tokens":0}}}},"gpt-image-2-c.generate":{"summary":"GPT Image 2 C (recorded 2026-10-12)","value":{"data":[{"b64_json":"<base64 2451996 chars>"}],"created":1791796714,"size":"1024x1024","usage":{"input_tokens":84,"output_tokens":343,"total_tokens":427,"input_tokens_details":{"text_tokens":84,"image_tokens":0},"output_tokens_details":{"text_tokens":0,"image_tokens":343}}}},"gpt-image-1.5.generate":{"summary":"GPT Image 1.5 (recorded 2026-10-12)","value":{"created":1791796994,"data":[{"revised_prompt":"","url":"https://pro.filesystem.site/cdn/20261012/4f75d6d6bab947e298ffb65658c9b40a.png"}],"usage":{"total_tokens":4196,"input_tokens":21,"output_tokens":4175,"input_tokens_details":{"text_tokens":21,"image_tokens":0}}}},"gpt-image-1.generate":{"summary":"GPT Image 1 (recorded 2026-10-12)","value":{"created":1791797022,"background":"opaque","data":[{"b64_json":"<base64 1760368 chars>"}],"output_format":"png","quality":"low","size":"1024x1024","usage":{"input_tokens":27,"input_tokens_details":{"image_tokens":0,"text_tokens":27},"output_tokens":272,"output_tokens_details":{"image_tokens":272,"text_tokens":0},"total_tokens":299}}},"doubao-seedream-5-0-pro-260628.generate":{"summary":"Seedream 5.0 Pro (recorded 2026-10-11)","value":{"model":"doubao-seedream-5-0-pro-260628","created":1791689303,"data":[{"url":"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0-pro/27936ff8de8e41bb12db6be036e8c6822e9dcb032042986197120/Image/2102132036/021791689240230bcd9e2286c8e630eb6bd21bb14e8ed8ff63972.jpeg?<redacted>","size":"1664x2496","output_format":"jpeg"}],"usage":{"input_images":0,"generated_images":1,"output_tokens":16224,"total_tokens":16224}}},"doubao-seedream-5-0-260128.generate":{"summary":"Seedream 5.0 (recorded 2026-10-12)","value":{"model":"doubao-seedream-5-0-260128","created":1791797418,"data":[{"url":"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021791797395502b71a54db2718758900f1b5b7cc45ea658eda99_0.jpeg?<redacted>","size":"1664x2496"}],"usage":{"generated_images":1,"output_tokens":16224,"total_tokens":16224}}},"dall-e-3.generate":{"summary":"DALL·E 3 (recorded 2026-10-12)","value":{"created":1791797072,"data":[{"revised_prompt":"","url":"https://pro.filesystem.site/cdn/20261012/cc90f1418a9e4f588d591c2882ea739c.png"}],"usage":{"total_tokens":4196,"input_tokens":21,"output_tokens":4175,"input_tokens_details":{"text_tokens":21,"image_tokens":0}}}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3.1-flash-image-preview:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_1_flash_image_preview_generateContent","tags":["Google"],"summary":"gemini-3.1-flash-image-preview","x-nextlab-models":[{"model":"gemini-3.1-flash-image-preview","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"image_size","wirePath":"generationConfig.imageConfig.imageSize","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9","1:4","4:1","1:8","8:1"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"},"imageSize":{"type":"string","enum":["1K","512","2K","4K"],"title":"Resolution","default":"1K","x-nextlab-key":"image_size"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana 2 — Generate"},"examples":{"gemini-3.1-flash-image-preview.generate":{"summary":"Nano Banana 2 — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-3.1-flash-image-preview.generate":{"summary":"Nano Banana 2 (recorded 2026-10-11)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"<base64 816068 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":29,"candidatesTokenCount":1734,"totalTokenCount":1763},"modelVersion":"gemini-3.1-flash-image-preview","responseId":"jky-cb5539d310bc46748ce2808151911431"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3.1-flash-image:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_1_flash_image_generateContent","tags":["Google"],"summary":"gemini-3.1-flash-image","x-nextlab-models":[{"model":"gemini-3.1-flash-image","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"image_size","wirePath":"generationConfig.imageConfig.imageSize","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9","1:4","4:1","1:8","8:1"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"},"imageSize":{"type":"string","enum":["1K","512","2K","4K"],"title":"Resolution","default":"1K","x-nextlab-key":"image_size"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana 2 (GA) — Generate"},"examples":{"gemini-3.1-flash-image.generate":{"summary":"Nano Banana 2 (GA) — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-3.1-flash-image.generate":{"summary":"Nano Banana 2 (GA) (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"<base64 714920 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":29,"candidatesTokenCount":1556,"totalTokenCount":1585},"modelVersion":"nano-banana2","responseId":"jky-3e5fe52a66ee4a03afa53645d5736c1b"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3.1-flash-lite-image:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_1_flash_lite_image_generateContent","tags":["Google"],"summary":"gemini-3.1-flash-lite-image","x-nextlab-models":[{"model":"gemini-3.1-flash-lite-image","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana 2 Lite — Generate"},"examples":{"gemini-3.1-flash-lite-image.generate":{"summary":"Nano Banana 2 Lite — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"thoughtSignature":{"type":"string"},"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["thoughtSignature","inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"},"promptTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}},"candidatesTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-3.1-flash-lite-image.generate":{"summary":"Nano Banana 2 Lite (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"thoughtSignature":"<base64 1120884 chars>","inlineData":{"mimeType":"image/jpeg","data":"<base64 762328 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":22,"candidatesTokenCount":1561,"totalTokenCount":1583,"promptTokensDetails":[{"modality":"TEXT","tokenCount":22}],"candidatesTokensDetails":[{"modality":"IMAGE","tokenCount":1120}]},"modelVersion":"gemini-3.1-flash-lite-image","responseId":"i6fMaqmfDsHR-8YP2KCLkQo"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3-pro-image:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_pro_image_generateContent","tags":["Google"],"summary":"gemini-3-pro-image","x-nextlab-models":[{"model":"gemini-3-pro-image","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"image_size","wirePath":"generationConfig.imageConfig.imageSize","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"},"imageSize":{"type":"string","enum":["1K","2K","4K"],"title":"Resolution","default":"1K","x-nextlab-key":"image_size"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana Pro (GA) — Generate"},"examples":{"gemini-3-pro-image.generate":{"summary":"Nano Banana Pro (GA) — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-3-pro-image.generate":{"summary":"Nano Banana Pro (GA) (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"<base64 902876 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":29,"candidatesTokenCount":1128,"totalTokenCount":1157},"modelVersion":"nano-banana-pro","responseId":"jky-77fd209c96d74fa88a3261fb4f691709"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3-pro-image-preview:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_pro_image_preview_generateContent","tags":["Google"],"summary":"gemini-3-pro-image-preview","x-nextlab-models":[{"model":"gemini-3-pro-image-preview","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"image_size","wirePath":"generationConfig.imageConfig.imageSize","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"},"imageSize":{"type":"string","enum":["1K","2K","4K"],"title":"Resolution","default":"1K","x-nextlab-key":"image_size"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana Pro — Generate"},"examples":{"gemini-3-pro-image-preview.generate":{"summary":"Nano Banana Pro — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-3-pro-image-preview.generate":{"summary":"Nano Banana Pro (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"<base64 840560 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":29,"candidatesTokenCount":1869,"totalTokenCount":1898},"modelVersion":"nano-banana-pro","responseId":"jky-e2035a1a62dc4bae953f33ddd5b6b0f7"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-2.5-flash-image:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_2_5_flash_image_generateContent","tags":["Google"],"summary":"gemini-2.5-flash-image","x-nextlab-models":[{"model":"gemini-2.5-flash-image","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana — Generate"},"examples":{"gemini-2.5-flash-image.generate":{"summary":"Nano Banana — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"},"promptTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}},"candidatesTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}}}},"modelVersion":{"type":"string"},"responseId":{"type":"string"}}},"examples":{"gemini-2.5-flash-image.generate":{"summary":"Nano Banana (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/png","data":"<base64 1958860 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":22,"candidatesTokenCount":1290,"totalTokenCount":1312,"promptTokensDetails":[{"modality":"TEXT","tokenCount":22}],"candidatesTokensDetails":[{"modality":"IMAGE","tokenCount":1290}]},"modelVersion":"gemini-2.5-flash-image","responseId":"aqfMap3kDreP1MkPzeK3KA"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-nano-banana-2.1:generateContent":{"post":{"operationId":"post_v1beta_models_gemini_nano_banana_2_1_generateContent","tags":["Google"],"summary":"gemini-nano-banana-2.1","x-nextlab-models":[{"model":"gemini-nano-banana-2.1","mode":"generate","task":"text-to-image","flow":"sync","params":[{"key":"prompt","wirePath":"contents[].parts[].text","in":"body"},{"key":"aspect_ratio","wirePath":"generationConfig.imageConfig.aspectRatio","in":"body"},{"key":"image_size","wirePath":"generationConfig.imageConfig.imageSize","in":"body"},{"key":"reference_image","wirePath":"contents[].parts[].fileData.fileUri","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Synchronous; images come back as base64 in candidates[0].content.parts[].inlineData.","Reference images may be data URLs (sent as inlineData) or public URLs (sent as fileData)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"responseModalities":{"const":["IMAGE"],"description":"Constant for this mode"},"imageConfig":{"type":"object","properties":{"aspectRatio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect ratio","default":"1:1","x-nextlab-key":"aspect_ratio"},"imageSize":{"type":"string","enum":["1K","2K","4K"],"title":"Resolution","default":"1K","x-nextlab-key":"image_size"}}}}},"contents":{"type":"array","items":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":14,"title":"Reference images","description":"Optional. Reference images enable editing and multi-image composition.","x-nextlab-key":"reference_image"}}}},"required":["text"]}}},"required":["parts"]}}},"required":["contents"],"title":"Nano Banana 2.1 — Generate"},"examples":{"gemini-nano-banana-2.1.generate":{"summary":"Nano Banana 2.1 — Generate (real request)","value":{"generationConfig":{"responseModalities":["IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}},"contents":[{"parts":[{"text":"A minimalist product poster: a glass perfume bottle on warm white paper, soft morning light, generous negative space"}]}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string"},"data":{"type":"string"}}}},"required":["inlineData"]}}}},"finishReason":{"type":"string"},"index":{"type":"integer"}},"required":["content","finishReason","index"]}},"usageMetadata":{"type":"object","properties":{"promptTokenCount":{"type":"integer"},"candidatesTokenCount":{"type":"integer"},"totalTokenCount":{"type":"integer"},"promptTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}},"candidatesTokensDetails":{"type":"array","items":{"type":"object","properties":{"modality":{"type":"string"},"tokenCount":{"type":"integer"}},"required":["modality","tokenCount"]}}}},"modelVersion":{"type":"string"}}},"examples":{"gemini-nano-banana-2.1.generate":{"summary":"Nano Banana 2.1 (recorded 2026-10-12)","value":{"candidates":[{"content":{"role":"model","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"<base64 883204 chars>"}}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":26,"candidatesTokenCount":1120,"totalTokenCount":1146,"promptTokensDetails":[{"modality":"TEXT","tokenCount":26}],"candidatesTokensDetails":[{"modality":"IMAGE","tokenCount":1120}]},"modelVersion":"gemini-nano-banana-2.1"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/seedance/api/v3/contents/generations/tasks":{"post":{"operationId":"post_seedance_api_v3_contents_generations_tasks","tags":["ByteDance"],"summary":"4 models: doubao-seedance-2-0-260128, doubao-seedance-2-0-fast-260128, doubao-seedance-2-0-mini-260615, doubao-seedance-2-5-260628","x-nextlab-models":[{"model":"doubao-seedance-2-0-260128","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-260128","mode":"image-to-video","task":"image-to-video","flow":"async","params":[{"key":"first_frame","wirePath":"content[role=first_frame].image_url.url","in":"body"},{"key":"last_frame","wirePath":"content[role=last_frame].image_url.url","in":"body"},{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-260128","mode":"reference-to-video","task":"reference-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"reference_image","wirePath":"content[role=reference_image].image_url.url","in":"body"},{"key":"reference_video","wirePath":"content[role=reference_video].video_url.url","in":"body"},{"key":"reference_audio","wirePath":"content[role=reference_audio].audio_url.url","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-fast-260128","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-fast-260128","mode":"image-to-video","task":"image-to-video","flow":"async","params":[{"key":"first_frame","wirePath":"content[role=first_frame].image_url.url","in":"body"},{"key":"last_frame","wirePath":"content[role=last_frame].image_url.url","in":"body"},{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-fast-260128","mode":"reference-to-video","task":"reference-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"reference_image","wirePath":"content[role=reference_image].image_url.url","in":"body"},{"key":"reference_video","wirePath":"content[role=reference_video].video_url.url","in":"body"},{"key":"reference_audio","wirePath":"content[role=reference_audio].audio_url.url","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-mini-260615","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-mini-260615","mode":"image-to-video","task":"image-to-video","flow":"async","params":[{"key":"first_frame","wirePath":"content[role=first_frame].image_url.url","in":"body"},{"key":"last_frame","wirePath":"content[role=last_frame].image_url.url","in":"body"},{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-0-mini-260615","mode":"reference-to-video","task":"reference-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"reference_image","wirePath":"content[role=reference_image].image_url.url","in":"body"},{"key":"reference_video","wirePath":"content[role=reference_video].video_url.url","in":"body"},{"key":"reference_audio","wirePath":"content[role=reference_audio].audio_url.url","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-5-260628","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-5-260628","mode":"image-to-video","task":"image-to-video","flow":"async","params":[{"key":"first_frame","wirePath":"content[role=first_frame].image_url.url","in":"body"},{"key":"last_frame","wirePath":"content[role=last_frame].image_url.url","in":"body"},{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]},{"model":"doubao-seedance-2-5-260628","mode":"reference-to-video","task":"reference-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"reference_image","wirePath":"content[role=reference_image].image_url.url","in":"body"},{"key":"reference_video","wirePath":"content[role=reference_video].video_url.url","in":"body"},{"key":"reference_audio","wirePath":"content[role=reference_audio].audio_url.url","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"generate_audio","wirePath":"generate_audio","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"watermark","wirePath":"watermark","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/seedance/api/v3/contents/generations/tasks/{task_id}"},"statusPath":"status","done":["succeeded"],"failed":["failed","expired","cancelled"],"outputPath":"content.video_url","notes":["Async task: pre-charged on submit, settled by actual usage after completion (measured: 480p 4 s pre-charged $0.80, settled ≈ $0.17).","content.video_url is a signed link valid for 24 hours; save the file promptly."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 — Text to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"image_url"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"First frame","x-nextlab-key":"first_frame"}}},"role":{"type":"string","const":"first_frame"}},"required":["type","image_url","role"]},{"type":"object","properties":{"role":{"type":"string","const":"last_frame"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Last frame","x-nextlab-key":"last_frame"}}}},"required":["role"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 — Image to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_image"},"image_url":{"type":"object","properties":{"url":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","x-nextlab-key":"reference_image"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_video"},"video_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference video","x-nextlab-key":"reference_video"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_audio"},"audio_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference audio","x-nextlab-key":"reference_audio"}}}},"required":["role"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 — Reference to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-fast-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Fast — Text to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-fast-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"image_url"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"First frame","x-nextlab-key":"first_frame"}}},"role":{"type":"string","const":"first_frame"}},"required":["type","image_url","role"]},{"type":"object","properties":{"role":{"type":"string","const":"last_frame"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Last frame","x-nextlab-key":"last_frame"}}}},"required":["role"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Fast — Image to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-fast-260128","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_image"},"image_url":{"type":"object","properties":{"url":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","x-nextlab-key":"reference_image"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_video"},"video_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference video","x-nextlab-key":"reference_video"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_audio"},"audio_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference audio","x-nextlab-key":"reference_audio"}}}},"required":["role"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Fast — Reference to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-mini-260615","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Mini — Text to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-mini-260615","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"image_url"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"First frame","x-nextlab-key":"first_frame"}}},"role":{"type":"string","const":"first_frame"}},"required":["type","image_url","role"]},{"type":"object","properties":{"role":{"type":"string","const":"last_frame"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Last frame","x-nextlab-key":"last_frame"}}}},"required":["role"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Mini — Image to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-0-mini-260615","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_image"},"image_url":{"type":"object","properties":{"url":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","x-nextlab-key":"reference_image"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_video"},"video_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference video","x-nextlab-key":"reference_video"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_audio"},"audio_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference audio","x-nextlab-key":"reference_audio"}}}},"required":["role"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.0 Mini — Reference to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-5-260628","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.5 — Text to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-5-260628","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"image_url"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"First frame","x-nextlab-key":"first_frame"}}},"role":{"type":"string","const":"first_frame"}},"required":["type","image_url","role"]},{"type":"object","properties":{"role":{"type":"string","const":"last_frame"},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Last frame","x-nextlab-key":"last_frame"}}}},"required":["role"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.5 — Image to video"},{"type":"object","properties":{"model":{"const":"doubao-seedance-2-5-260628","description":"Model ID"},"ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","default":"720p","x-nextlab-key":"resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"title":"Duration","description":"(s)","default":5,"x-nextlab-key":"duration"},"generate_audio":{"type":"boolean","title":"Generate audio","default":true,"x-nextlab-key":"generate_audio"},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_image"},"image_url":{"type":"object","properties":{"url":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"title":"Reference images","x-nextlab-key":"reference_image"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_video"},"video_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference video","x-nextlab-key":"reference_video"}}}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","const":"reference_audio"},"audio_url":{"type":"object","properties":{"url":{"type":"string","format":"uri","title":"Reference audio","x-nextlab-key":"reference_audio"}}}},"required":["role"]}]}},"seed":{"type":"integer","minimum":-1,"title":"Seed","description":"Same seed and params give similar results; -1 is random.","x-nextlab-key":"seed"},"watermark":{"type":"boolean","title":"Watermark","default":false,"x-nextlab-key":"watermark"}},"required":["model","content"],"title":"Seedance 2.5 — Reference to video"}]},"examples":{"doubao-seedance-2-0-260128.text-to-video":{"summary":"Seedance 2.0 — Text to video (real request)","value":{"model":"doubao-seedance-2-0-260128","ratio":"16:9","resolution":"480p","duration":4,"generate_audio":false,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, reflections of neon signs on the water, cinematic"}]}},"doubao-seedance-2-0-260128.image-to-video":{"summary":"Seedance 2.0 — Image to video (sample)","value":{"model":"doubao-seedance-2-0-260128","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"image_url","image_url":{"url":"https://example.com/reference.png"},"role":"first_frame"}]}},"doubao-seedance-2-0-260128.reference-to-video":{"summary":"Seedance 2.0 — Reference to video (sample)","value":{"model":"doubao-seedance-2-0-260128","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, cinematic"}]}},"doubao-seedance-2-0-fast-260128.text-to-video":{"summary":"Seedance 2.0 Fast — Text to video (real request)","value":{"model":"doubao-seedance-2-0-fast-260128","ratio":"16:9","resolution":"480p","duration":4,"generate_audio":false,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, reflections of neon signs on the water, cinematic"}]}},"doubao-seedance-2-0-fast-260128.image-to-video":{"summary":"Seedance 2.0 Fast — Image to video (sample)","value":{"model":"doubao-seedance-2-0-fast-260128","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"image_url","image_url":{"url":"https://example.com/reference.png"},"role":"first_frame"}]}},"doubao-seedance-2-0-fast-260128.reference-to-video":{"summary":"Seedance 2.0 Fast — Reference to video (sample)","value":{"model":"doubao-seedance-2-0-fast-260128","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, cinematic"}]}},"doubao-seedance-2-0-mini-260615.text-to-video":{"summary":"Seedance 2.0 Mini — Text to video (real request)","value":{"model":"doubao-seedance-2-0-mini-260615","ratio":"16:9","resolution":"480p","duration":4,"generate_audio":false,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, reflections of neon signs on the water, cinematic"}]}},"doubao-seedance-2-0-mini-260615.image-to-video":{"summary":"Seedance 2.0 Mini — Image to video (sample)","value":{"model":"doubao-seedance-2-0-mini-260615","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"image_url","image_url":{"url":"https://example.com/reference.png"},"role":"first_frame"}]}},"doubao-seedance-2-0-mini-260615.reference-to-video":{"summary":"Seedance 2.0 Mini — Reference to video (sample)","value":{"model":"doubao-seedance-2-0-mini-260615","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, cinematic"}]}},"doubao-seedance-2-5-260628.text-to-video":{"summary":"Seedance 2.5 — Text to video (sample)","value":{"model":"doubao-seedance-2-5-260628","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, cinematic"}]}},"doubao-seedance-2-5-260628.image-to-video":{"summary":"Seedance 2.5 — Image to video (sample)","value":{"model":"doubao-seedance-2-5-260628","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"image_url","image_url":{"url":"https://example.com/reference.png"},"role":"first_frame"}]}},"doubao-seedance-2-5-260628.reference-to-video":{"summary":"Seedance 2.5 — Reference to video (sample)","value":{"model":"doubao-seedance-2-5-260628","ratio":"16:9","resolution":"720p","duration":5,"generate_audio":true,"content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, cinematic"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"created_at":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"status":{"type":"string"}}},"examples":{"doubao-seedance-2-0-260128.text-to-video":{"summary":"Seedance 2.0 (recorded 2026-10-12)","value":{"created_at":1791804710,"id":"task_qNgmyPNrJmTlovuWa60aRzU4FGnCq2J8","model":"doubao-seedance-2-0-260128","status":"queued"}},"doubao-seedance-2-0-fast-260128.text-to-video":{"summary":"Seedance 2.0 Fast (recorded 2026-10-12)","value":{"created_at":1791804531,"id":"task_zqMQGcfOJgjxO7iCDGuitTuLsUWeqRAd","model":"doubao-seedance-2-0-fast-260128","status":"queued"}},"doubao-seedance-2-0-mini-260615.text-to-video":{"summary":"Seedance 2.0 Mini (recorded 2026-10-11)","value":{"created_at":1791689332,"id":"task_fwjBJz3oa4v5HKSOncsNBWwKfq20PGt8","model":"doubao-seedance-2-0-mini-260615","status":"queued"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/seedance/api/v3/contents/generations/tasks/{task_id}":{"get":{"operationId":"get_seedance_api_v3_contents_generations_tasks_task_id_","tags":["ByteDance"],"summary":"4 models: doubao-seedance-2-0-260128, doubao-seedance-2-0-fast-260128, doubao-seedance-2-0-mini-260615, doubao-seedance-2-5-260628","x-nextlab-models":[{"model":"doubao-seedance-2-0-260128","mode":"text-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-260128","mode":"image-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-260128","mode":"reference-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-fast-260128","mode":"text-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-fast-260128","mode":"image-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-fast-260128","mode":"reference-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-mini-260615","mode":"text-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-mini-260615","mode":"image-to-video","flow":"poll"},{"model":"doubao-seedance-2-0-mini-260615","mode":"reference-to-video","flow":"poll"},{"model":"doubao-seedance-2-5-260628","mode":"text-to-video","flow":"poll"},{"model":"doubao-seedance-2-5-260628","mode":"image-to-video","flow":"poll"},{"model":"doubao-seedance-2-5-260628","mode":"reference-to-video","flow":"poll"}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"object","properties":{"video_url":{"type":"string"}}},"created_at":{"type":"integer"},"duration":{"type":"integer"},"execution_expires_after":{"type":"integer"},"framespersecond":{"type":"integer"},"generate_audio":{"type":"boolean"},"id":{"type":"string"},"model":{"type":"string"},"ratio":{"type":"string"},"resolution":{"type":"string"},"seed":{"type":"integer"},"status":{"type":"string"},"task_id":{"type":"string"},"tools":{"type":"array","items":{}},"updated_at":{"type":"integer"},"usage":{"type":"object","properties":{"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}}}},"examples":{"doubao-seedance-2-0-260128.text-to-video":{"summary":"Seedance 2.0 — finished (recorded 2026-10-12)","value":{"content":{"video_url":"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-2-0/02179180471548000000000000000000000ffffac190631d45b95.mp4?<redacted>"},"created_at":1791804710,"duration":4,"execution_expires_after":172800,"framespersecond":24,"generate_audio":false,"id":"task_qNgmyPNrJmTlovuWa60aRzU4FGnCq2J8","model":"doubao-seedance-2-0-260128","ratio":"16:9","resolution":"480p","seed":77579,"status":"succeeded","task_id":"TkcxH8sVrUiJ3gkrU54nPF3GbWqGNV1aaW1YkS2jXM5PDEs2Mcc1J1TsjWWGaMVCc8dASOLyDBD452jT7CYLGiFMM4hFGREudiiRZvDnIrC02Sutk4YRPkkDyNfhSz5PnWJTGwl0MLaQ","tools":[],"updated_at":1791804845,"usage":{"completion_tokens":40594,"total_tokens":40594}}},"doubao-seedance-2-0-fast-260128.text-to-video":{"summary":"Seedance 2.0 Fast — finished (recorded 2026-10-12)","value":{"content":{"video_url":"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-2-0-fast/02179180453632300000000000000000000ffffac18141115f7d5.mp4?<redacted>"},"created_at":1791804531,"duration":4,"execution_expires_after":172800,"framespersecond":24,"generate_audio":false,"id":"task_zqMQGcfOJgjxO7iCDGuitTuLsUWeqRAd","model":"doubao-seedance-2-0-fast-260128","ratio":"16:9","resolution":"480p","seed":58198,"status":"succeeded","task_id":"COYbauYHfR57kyddYEPg8rKnuDhoYquviRKcjfnYt1Sopw3G1N1SAix85GEIcoNsCc8yOR6cO2O7IGFgjBt3YJaOVvgNqMoCjeAMJ3p7zROFzOzIuhrcWOPJ0crDcAl3YihT6XRIcvQWk3knVoA","tools":[],"updated_at":1791804685,"usage":{"completion_tokens":40594,"total_tokens":40594}}},"doubao-seedance-2-0-mini-260615.text-to-video":{"summary":"Seedance 2.0 Mini — finished (recorded 2026-10-11)","value":{"content":{"video_url":"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-2-0-mini/02179168934539000000000000000000000ffffac17421319d567.mp4?<redacted>"},"created_at":1791689332,"duration":4,"execution_expires_after":172800,"framespersecond":24,"generate_audio":false,"id":"task_fwjBJz3oa4v5HKSOncsNBWwKfq20PGt8","model":"doubao-seedance-2-0-mini-260615","ratio":"16:9","resolution":"480p","seed":82718,"status":"succeeded","task_id":"8cdFRwPQSdUAWhgnBFpVLaDZf5JlnnIQAVa0eT3a4O8PqHWXwXKYne5D91nBpzIg56QFN50F3V6vj0tOsA9JEAcIW5J8Mq1q8NWVHTbv7YY6ZAMFrQMto4wivG5t8DYxbihPgrgcTWn10qzpreC","tools":[],"updated_at":1791689437,"usage":{"completion_tokens":40594,"total_tokens":40594}}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/videos":{"post":{"operationId":"post_v1_videos","tags":["Google","OpenAI"],"summary":"3 models: veo3.1-fast, veo3.1, sora-2","x-nextlab-models":[{"model":"veo3.1-fast","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"prompt","in":"form"},{"key":"aspect_ratio","wirePath":"aspect_ratio","in":"form"}],"poll":{"method":"GET","url":"https://api.openai-next.com/v1/videos/{task_id}"},"statusPath":"status","done":["completed","succeeded","success"],"failed":["failed","error","cancelled","expired"],"notes":["Submit as multipart/form-data; JSON bodies are rejected upstream (Unsupported content type).","If the finished task has no direct URL, download it from GET /v1/videos/{id}/content (needs the key — call it server-side)."]},{"model":"veo3.1","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"prompt","in":"form"},{"key":"aspect_ratio","wirePath":"aspect_ratio","in":"form"}],"poll":{"method":"GET","url":"https://api.openai-next.com/v1/videos/{task_id}"},"statusPath":"status","done":["completed","succeeded","success"],"failed":["failed","error","cancelled","expired"],"notes":["Submit as multipart/form-data; JSON bodies are rejected upstream (Unsupported content type).","If the finished task has no direct URL, download it from GET /v1/videos/{id}/content (needs the key — call it server-side)."]},{"model":"sora-2","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"prompt","in":"form"},{"key":"seconds","wirePath":"seconds","in":"form"},{"key":"size","wirePath":"size","in":"form"}],"poll":{"method":"GET","url":"https://api.openai-next.com/v1/videos/{task_id}"},"statusPath":"status","done":["completed","succeeded","success"],"failed":["failed","error","cancelled","expired"],"notes":["Submit as multipart/form-data; JSON bodies are rejected upstream (Unsupported content type).","If the finished task has no direct URL, download it from GET /v1/videos/{id}/content (needs the key — call it server-side)."]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"veo3.1-fast","description":"Model ID"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"aspect_ratio"}},"required":["model","prompt"],"title":"Veo 3.1 Fast — Text to video"},{"type":"object","properties":{"model":{"const":"veo3.1","description":"Model ID"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"aspect_ratio"}},"required":["model","prompt"],"title":"Veo 3.1 — Text to video"},{"type":"object","properties":{"model":{"const":"sora-2","description":"Model ID"},"prompt":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"},"seconds":{"type":"string","enum":["4","8","12"],"title":"Duration","default":"4","x-nextlab-key":"seconds"},"size":{"type":"string","enum":["1280x720","720x1280"],"title":"Size","default":"720x1280","x-nextlab-key":"size"}},"required":["model","prompt"],"title":"Sora 2 — Text to video"}]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/videos/{task_id}":{"get":{"operationId":"get_v1_videos_task_id_","tags":["Google","OpenAI"],"summary":"3 models: veo3.1-fast, veo3.1, sora-2","x-nextlab-models":[{"model":"veo3.1-fast","mode":"text-to-video","flow":"poll"},{"model":"veo3.1","mode":"text-to-video","flow":"poll"},{"model":"sora-2","mode":"text-to-video","flow":"poll"}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/hailuo/v2/video_generation":{"post":{"operationId":"post_hailuo_v2_video_generation","tags":["MiniMax"],"summary":"MiniMax-H3","x-nextlab-models":[{"model":"MiniMax-H3","mode":"text-to-video","task":"text-to-video","flow":"async","params":[{"key":"prompt","wirePath":"content[type=text].text","in":"body"},{"key":"resolution","wirePath":"resolution","in":"body"},{"key":"duration","wirePath":"duration","in":"body"},{"key":"ratio","wirePath":"ratio","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/hailuo/v2/query/video_generation/{task_id}"},"statusPath":"task.status","done":["succeeded"],"failed":["failed"],"outputPath":"task.content.url","notes":["resolution must be upper-case, e.g. 768P.","task.progress is a 0–1 fraction; 1 means done."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"const":"MiniMax-H3","description":"Model ID"},"resolution":{"type":"string","enum":["768P"],"title":"Resolution","default":"768P","x-nextlab-key":"resolution"},"duration":{"type":"integer","enum":[6,10],"title":"Duration","default":6,"x-nextlab-key":"duration"},"ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect ratio","default":"16:9","x-nextlab-key":"ratio"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","title":"Prompt","description":"Describe what to generate. Be specific: subject, scene, style, lighting, camera.","x-nextlab-key":"prompt"}},"required":["type","text"]}}},"required":["model","content"],"title":"MiniMax H3 — Text to video"},"examples":{"MiniMax-H3.text-to-video":{"summary":"MiniMax H3 — Text to video (real request)","value":{"model":"MiniMax-H3","resolution":"768P","duration":6,"ratio":"16:9","content":[{"type":"text","text":"A paper boat drifting slowly down a rain-soaked street at dusk, reflections of neon signs on the water, cinematic"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"}}},"examples":{"MiniMax-H3.text-to-video":{"summary":"MiniMax H3 (recorded 2026-10-11)","value":{"task_id":"task_TJPZWrvJzlIgP7DfDbEjJ1i3HgTlr5Wx"}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/hailuo/v2/query/video_generation/{task_id}":{"get":{"operationId":"get_hailuo_v2_query_video_generation_task_id_","tags":["MiniMax"],"summary":"MiniMax-H3","x-nextlab-models":[{"model":"MiniMax-H3","mode":"text-to-video","flow":"poll"}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"object","properties":{"content":{"type":"object","properties":{"url":{"type":"string"}}},"error":{},"id":{"type":"string"},"progress":{"type":"integer"},"status":{"type":"string"}}}}},"examples":{"MiniMax-H3.text-to-video":{"summary":"MiniMax H3 — finished (recorded 2026-10-11)","value":{"task":{"content":{"url":"https://minmax-1362655856.cos.ap-guangzhou.myqcloud.com/outputs/0cbb2a5b2b1f6aef1344a10904aa1f370d7397f9eaea0887bde0183c275bc363.mp4"},"error":null,"id":"task_TJPZWrvJzlIgP7DfDbEjJ1i3HgTlr5Wx","progress":1,"status":"succeeded"}}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/_open/suno/music/generate":{"post":{"operationId":"post_open_suno_music_generate","tags":["Suno"],"summary":"chirp-v4","x-nextlab-models":[{"model":"chirp-v4","mode":"inspiration","task":"text-to-music","flow":"async","params":[{"key":"description","wirePath":"gptDescriptionPrompt","in":"body"},{"key":"instrumental","wirePath":"makeInstrumental","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/_open/suno/music/getState?taskBatchId={task_id}"},"statusPath":"data.taskStatus","done":["finished"],"failed":["failed","error","cancelled"],"outputPath":"data.items[0].cld2AudioUrl","notes":["Each run produces two tracks, in data.items[].","Audio links live in a temporary directory; download what you want to keep."]},{"model":"chirp-v4","mode":"custom-lyrics","task":"lyrics-to-music","flow":"async","params":[{"key":"lyrics","wirePath":"prompt","in":"body"},{"key":"tags","wirePath":"tags","in":"body"},{"key":"title","wirePath":"title","in":"body"}],"poll":{"method":"GET","url":"https://api.openai-next.com/_open/suno/music/getState?taskBatchId={task_id}"},"statusPath":"data.taskStatus","done":["finished"],"failed":["failed","error","cancelled"],"outputPath":"data.items[0].cld2AudioUrl","notes":["Each run produces two tracks, in data.items[].","Audio links live in a temporary directory; download what you want to keep."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"mvVersion":{"const":"chirp-v4","description":"Model ID"},"inputType":{"const":"10","description":"Constant for this mode"},"gptDescriptionPrompt":{"type":"string","maxLength":200,"title":"Song description","description":"Describe style, mood and use; lyrics and arrangement are generated. Returns two tracks.","x-nextlab-key":"description"},"makeInstrumental":{"type":"boolean","title":"Instrumental","default":false,"x-nextlab-key":"instrumental"}},"required":["mvVersion","inputType","gptDescriptionPrompt"],"title":"Suno v4 — Describe a song"},{"type":"object","properties":{"mvVersion":{"const":"chirp-v4","description":"Model ID"},"inputType":{"const":"20","description":"Constant for this mode"},"prompt":{"type":"string","maxLength":3000,"title":"Lyrics","description":"Supports structure tags like [Verse] and [Chorus].","x-nextlab-key":"lyrics"},"tags":{"type":"string","maxLength":200,"title":"Style tags","x-nextlab-key":"tags"},"title":{"type":"string","title":"Title","x-nextlab-key":"title"}},"required":["mvVersion","inputType","prompt","tags","title"],"title":"Suno v4 — Custom lyrics"}]},"examples":{"chirp-v4.inspiration":{"summary":"Suno v4 — Describe a song (real request)","value":{"mvVersion":"chirp-v4","inputType":"10","gptDescriptionPrompt":"a short warm lo-fi instrumental for a product launch video"}},"chirp-v4.custom-lyrics":{"summary":"Suno v4 — Custom lyrics (sample)","value":{"mvVersion":"chirp-v4","inputType":"20","prompt":"[Verse]\nCity lights flicker on\nThe highway hums along\n\n[Chorus]\nDriving home tonight","tags":"pop, female voice, warm","title":"Night Drive"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"taskBatchId":{"type":"string"},"taskStatus":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"createTime":{"type":"string"},"id":{"type":"string"},"inputType":{"type":"string"},"gptDescriptionPrompt":{"type":"string"},"progress":{"type":"integer"},"status":{"type":"integer"},"progressMsg":{"type":"string"}},"required":["createTime","id","inputType","gptDescriptionPrompt","progress","status","progressMsg"]}}}}}},"examples":{"chirp-v4.inspiration":{"summary":"Suno v4 (recorded 2026-10-11)","value":{"code":200,"msg":"您已成功提交创作任务，目前剩余并发任务数为99","data":{"taskBatchId":"1316004241194344449","taskStatus":"create","items":[{"createTime":"2026-10-11T11:31:01.422+08:00","id":"2109124585252417538","inputType":"10","gptDescriptionPrompt":"a short warm lo-fi instrumental for a product launch video","progress":0,"status":0,"progressMsg":"Analyzing your creation..."},{"createTime":"2026-10-11T11:31:01.422+08:00","id":"2109124585252417539","inputType":"10","gptDescriptionPrompt":"a short warm lo-fi instrumental for a product launch video","progress":0,"status":0,"progressMsg":"Analyzing your creation..."}]}}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/_open/suno/music/getState":{"get":{"operationId":"get_open_suno_music_getState","tags":["Suno"],"summary":"chirp-v4","x-nextlab-models":[{"model":"chirp-v4","mode":"inspiration","flow":"poll"},{"model":"chirp-v4","mode":"custom-lyrics","flow":"poll"}],"parameters":[{"name":"taskBatchId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"taskBatchId":{"type":"string"},"taskStatus":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"createTime":{"type":"string"},"id":{"type":"string"},"inputType":{"type":"string"},"prompt":{"type":"string"},"gptDescriptionPrompt":{"type":"string"},"title":{"type":"string"},"tags":{"type":"string"},"duration":{"type":"number"},"progress":{"type":"integer"},"waitNum":{"type":"integer"},"status":{"type":"integer"},"cld2AudioUrl":{"type":"string"},"cld2ImageUrl":{"type":"string"},"progressMsg":{"type":"string"},"clipId":{"type":"string"}},"required":["createTime","id","inputType","prompt","gptDescriptionPrompt","title","tags","duration","progress","waitNum","status","cld2AudioUrl","cld2ImageUrl","progressMsg","clipId"]}}}}}},"examples":{"chirp-v4.inspiration":{"summary":"Suno v4 — finished (recorded 2026-10-11)","value":{"code":200,"msg":"操作成功","data":{"taskBatchId":"1316004241194344449","taskStatus":"finished","items":[{"createTime":"2026-10-11T11:31:01.000+08:00","id":"2109124585252417538","inputType":"10","prompt":"[Instrumental]","gptDescriptionPrompt":"a short warm lo-fi instrumental for a product launch video","title":"Soft Start","tags":"Lo-fi instrumental, carefully balanced clear modern mix with warm subtle tape texture; soft dusty drums, rounded bass, mellow electric piano chords, and a simple memorable plucked synth motif; brief piano-and-texture intro, gentle beat-and-bass entry, light melodic lift in the middle, clean resolution with a short natural tail; relaxed mid-tempo pocket.","duration":158.4,"progress":100,"waitNum":0,"status":30,"cld2AudioUrl":"https://file.lloongai.com/temp/suno/s104/2026/10/11/20261011113227A525.mp3","cld2ImageUrl":"https://cdn2.suno.ai/image_b8dd1c5d-141b-46a6-9d85-53f19399c742.jpeg","progressMsg":"Production completed","clipId":"b8dd1c5d-141b-46a6-9d85-53f19399c742"},{"createTime":"2026-10-11T11:31:01.000+08:00","id":"2109124585252417539","inputType":"10","prompt":"[Instrumental]","gptDescriptionPrompt":"a short warm lo-fi instrumental for a product launch video","title":"Soft Start","tags":"Lo-fi instrumental with mellow electric piano chords, rounded bass, soft dusty drums, and a simple memorable plucked synth motif; brief piano-and-texture intro, gentle beat-and-bass entry, light melodic lift, clean short tail; subtle tape texture, clear modern mix; relaxed mid-tempo pocket.","duration":122.36,"progress":100,"waitNum":0,"status":30,"cld2AudioUrl":"https://file.lloongai.com/temp/suno/s104/2026/10/11/20261011113232A526.mp3","cld2ImageUrl":"https://cdn2.suno.ai/image_df7a219b-7776-45e5-a864-9c75838405b1.jpeg","progressMsg":"Production completed","clipId":"df7a219b-7776-45e5-a864-9c75838405b1"}]}}}}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/audio/speech":{"post":{"operationId":"post_v1_audio_speech","tags":["OpenAI"],"summary":"3 models: gpt-4o-mini-tts, tts-1, tts-1-hd","x-nextlab-models":[{"model":"gpt-4o-mini-tts","mode":"speech","task":"text-to-speech","flow":"sync","params":[{"key":"input","wirePath":"input","in":"body"},{"key":"voice","wirePath":"voice","in":"body"},{"key":"response_format","wirePath":"response_format","in":"body"},{"key":"speed","wirePath":"speed","in":"body"},{"key":"instructions","wirePath":"instructions","in":"body"}],"outputPath":"the response body: audio bytes","notes":["Synchronous; the response body is the audio file itself (not JSON), in the response_format: mp3, opus, aac, flac or wav.","Billed per input character; up to 4096 characters a request."]},{"model":"tts-1","mode":"speech","task":"text-to-speech","flow":"sync","params":[{"key":"input","wirePath":"input","in":"body"},{"key":"voice","wirePath":"voice","in":"body"},{"key":"response_format","wirePath":"response_format","in":"body"},{"key":"speed","wirePath":"speed","in":"body"}],"outputPath":"the response body: audio bytes","notes":["Synchronous; the response body is the audio file itself (not JSON), in the response_format: mp3, opus, aac, flac or wav.","Billed per input character; up to 4096 characters a request."]},{"model":"tts-1-hd","mode":"speech","task":"text-to-speech","flow":"sync","params":[{"key":"input","wirePath":"input","in":"body"},{"key":"voice","wirePath":"voice","in":"body"},{"key":"response_format","wirePath":"response_format","in":"body"},{"key":"speed","wirePath":"speed","in":"body"}],"outputPath":"the response body: audio bytes","notes":["Synchronous; the response body is the audio file itself (not JSON), in the response_format: mp3, opus, aac, flac or wav.","Billed per input character; up to 4096 characters a request."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"gpt-4o-mini-tts","description":"Model ID"},"voice":{"type":"string","enum":["alloy","ash","coral","echo","fable","nova","onyx","sage","shimmer","ballad","verse"],"title":"Voice","default":"alloy","x-nextlab-key":"voice"},"input":{"type":"string","maxLength":4096,"title":"Text to speak","description":"Up to 4096 characters.","x-nextlab-key":"input"},"response_format":{"type":"string","enum":["mp3","opus","aac","flac","wav"],"title":"Audio format","default":"mp3","x-nextlab-key":"response_format"},"speed":{"type":"number","minimum":0.25,"maximum":4,"title":"Speed","default":1,"x-nextlab-key":"speed"},"instructions":{"type":"string","maxLength":2000,"title":"How to say it","description":"Tone, pace, accent — e.g. “warm, slow, with a smile”.","x-nextlab-key":"instructions"}},"required":["model","input","voice"],"title":"GPT-4o mini TTS — Text to speech"},{"type":"object","properties":{"model":{"const":"tts-1","description":"Model ID"},"voice":{"type":"string","enum":["alloy","ash","coral","echo","fable","nova","onyx","sage","shimmer"],"title":"Voice","default":"alloy","x-nextlab-key":"voice"},"input":{"type":"string","maxLength":4096,"title":"Text to speak","description":"Up to 4096 characters.","x-nextlab-key":"input"},"response_format":{"type":"string","enum":["mp3","opus","aac","flac","wav"],"title":"Audio format","default":"mp3","x-nextlab-key":"response_format"},"speed":{"type":"number","minimum":0.25,"maximum":4,"title":"Speed","default":1,"x-nextlab-key":"speed"}},"required":["model","input","voice"],"title":"TTS-1 — Text to speech"},{"type":"object","properties":{"model":{"const":"tts-1-hd","description":"Model ID"},"voice":{"type":"string","enum":["alloy","ash","coral","echo","fable","nova","onyx","sage","shimmer"],"title":"Voice","default":"alloy","x-nextlab-key":"voice"},"input":{"type":"string","maxLength":4096,"title":"Text to speak","description":"Up to 4096 characters.","x-nextlab-key":"input"},"response_format":{"type":"string","enum":["mp3","opus","aac","flac","wav"],"title":"Audio format","default":"mp3","x-nextlab-key":"response_format"},"speed":{"type":"number","minimum":0.25,"maximum":4,"title":"Speed","default":1,"x-nextlab-key":"speed"}},"required":["model","input","voice"],"title":"TTS-1 HD — Text to speech"}]},"examples":{"gpt-4o-mini-tts.speech":{"summary":"GPT-4o mini TTS — Text to speech (sample)","value":{"model":"gpt-4o-mini-tts","voice":"alloy","input":"Welcome to NextLabs. Try any model, compare them, and keep what works."}},"tts-1.speech":{"summary":"TTS-1 — Text to speech (sample)","value":{"model":"tts-1","voice":"alloy","input":"Welcome to NextLabs. Try any model, compare them, and keep what works."}},"tts-1-hd.speech":{"summary":"TTS-1 HD — Text to speech (sample)","value":{"model":"tts-1-hd","voice":"alloy","input":"Welcome to NextLabs. Try any model, compare them, and keep what works."}}}}}},"responses":{"200":{"description":"The audio itself, in the requested response_format","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/ogg":{"schema":{"type":"string","format":"binary"}},"audio/aac":{"schema":{"type":"string","format":"binary"}},"audio/flac":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/chat/completions":{"post":{"operationId":"post_v1_chat_completions","tags":["OpenAI","Anthropic","Google","DeepSeek","Alibaba Qwen","ByteDance","Zhipu AI","Moonshot AI","xAI","MiniMax"],"summary":"15 models: gpt-5.6, gpt-5.6-luna, claude-opus-5-5, claude-sonnet-4-6, gemini-3.1-pro-preview, gemini-3.8-flash…","x-nextlab-models":[{"model":"gpt-5.6","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_completion_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"gpt-5.6-luna","mode":"chat","task":"chat","flow":"sync","params":[{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_completion_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"claude-opus-5-5","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"claude-sonnet-4-6","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"gemini-3.1-pro-preview","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"gemini-3.8-flash","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"deepseek-v4-pro","mode":"chat","task":"chat","flow":"sync","params":[{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"deepseek-v4-flash","mode":"chat","task":"chat","flow":"sync","params":[{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"qwen3.5-plus","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"doubao-seed-2-0-pro-260215","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"doubao-seed-2-0-mini-260215","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"glm-5.2","mode":"chat","task":"chat","flow":"sync","params":[{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"kimi-k3","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"grok-4.6","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]},{"model":"MiniMax-M3","mode":"chat","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image_url].image_url.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"messages[role=system].content","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"frequency_penalty","wirePath":"frequency_penalty","in":"body"},{"key":"presence_penalty","wirePath":"presence_penalty","in":"body"},{"key":"seed","wirePath":"seed","in":"body"},{"key":"stop","wirePath":"stop","in":"body"},{"key":"response_format","wirePath":"response_format.type","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning_effort","in":"body"},{"key":"logprobs","wirePath":"logprobs","in":"body"},{"key":"top_logprobs","wirePath":"top_logprobs","in":"body"},{"key":"parallel_tool_calls","wirePath":"parallel_tool_calls","in":"body"}],"outputPath":"choices[0].message.content (streamed: choices[0].delta.content of each event)","notes":["OpenAI-compatible: the one /v1/chat/completions serves every chat model on the platform, billed per input and output token.","With stream: true the answer arrives as server-sent events (text/event-stream): each data: line is a JSON chunk, then data: [DONE]; stream_options.include_usage adds token usage to the last chunk.","OpenAI's newer models take max_completion_tokens instead of max_tokens."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"gpt-5.6","description":"Model ID"},"max_completion_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"GPT-5.6 — Chat"},{"type":"object","properties":{"model":{"const":"gpt-5.6-luna","description":"Model ID"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"max_completion_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"GPT-5.6 Luna — Chat"},{"type":"object","properties":{"model":{"const":"claude-opus-5-5","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Claude Opus 5.5 — Chat"},{"type":"object","properties":{"model":{"const":"claude-sonnet-4-6","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Claude Sonnet 4.6 — Chat"},{"type":"object","properties":{"model":{"const":"gemini-3.1-pro-preview","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Gemini 3.1 Pro — Chat"},{"type":"object","properties":{"model":{"const":"gemini-3.8-flash","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Gemini 3.8 Flash — Chat"},{"type":"object","properties":{"model":{"const":"deepseek-v4-pro","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"DeepSeek V4 Pro — Chat"},{"type":"object","properties":{"model":{"const":"deepseek-v4-flash","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"DeepSeek V4 Flash — Chat"},{"type":"object","properties":{"model":{"const":"qwen3.5-plus","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Qwen3.5-Plus — Chat"},{"type":"object","properties":{"model":{"const":"doubao-seed-2-0-pro-260215","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Seed 2.0 Pro — Chat"},{"type":"object","properties":{"model":{"const":"doubao-seed-2-0-mini-260215","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Seed 2.0 Mini — Chat"},{"type":"object","properties":{"model":{"const":"glm-5.2","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"GLM-5.2 — Chat"},{"type":"object","properties":{"model":{"const":"kimi-k3","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Kimi K3 — Chat"},{"type":"object","properties":{"model":{"const":"grok-4.6","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"Grok 4.6 — Chat"},{"type":"object","properties":{"model":{"const":"MiniMax-M3","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample only from the most likely tokens up to this total probability; usually tune this or temperature, not both.","x-nextlab-key":"top_p"},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Frequency penalty","description":"Positive values make the model repeat frequent tokens less.","x-nextlab-key":"frequency_penalty"},"presence_penalty":{"type":"number","minimum":-2,"maximum":2,"title":"Presence penalty","description":"Positive values push the model toward new topics.","x-nextlab-key":"presence_penalty"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer (not guaranteed); empty = random.","x-nextlab-key":"seed"},"stop":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 4).","x-nextlab-key":"stop"},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt). For a JSON Schema, override response_format in the raw body.","x-nextlab-key":"response_format"}}},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long a reasoning model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"logprobs":{"type":"boolean","title":"Log probabilities","description":"Return each output token's log probability. Not every model does (2026-10-13: DeepSeek and GLM do; others accept it and return none).","x-nextlab-key":"logprobs"},"top_logprobs":{"type":"integer","minimum":0,"maximum":20,"title":"Top log probabilities","description":"Also list the most likely alternatives at each position (needs log probabilities).","x-nextlab-key":"top_logprobs"},"parallel_tool_calls":{"type":"boolean","title":"Parallel tool calls","description":"Let one answer call several tools at once (only with tools).","x-nextlab-key":"parallel_tool_calls"}},"required":["model","messages"],"title":"MiniMax-M3 — Chat"}]},"examples":{"gpt-5.6.chat":{"summary":"GPT-5.6 — Chat (real request)","value":{"model":"gpt-5.6","max_completion_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"gpt-5.6-luna.chat":{"summary":"GPT-5.6 Luna — Chat (sample)","value":{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"Write a two-line slogan for a reusable water bottle made of glass."}],"stream":true,"stream_options":{"include_usage":true}}},"claude-opus-5-5.chat":{"summary":"Claude Opus 5.5 — Chat (real request)","value":{"model":"claude-opus-5-5","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"claude-sonnet-4-6.chat":{"summary":"Claude Sonnet 4.6 — Chat (real request)","value":{"model":"claude-sonnet-4-6","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"gemini-3.1-pro-preview.chat":{"summary":"Gemini 3.1 Pro — Chat (real request)","value":{"model":"gemini-3.1-pro-preview","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"gemini-3.8-flash.chat":{"summary":"Gemini 3.8 Flash — Chat (real request)","value":{"model":"gemini-3.8-flash","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"deepseek-v4-pro.chat":{"summary":"DeepSeek V4 Pro — Chat (real request)","value":{"model":"deepseek-v4-pro","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"deepseek-v4-flash.chat":{"summary":"DeepSeek V4 Flash — Chat (real request)","value":{"model":"deepseek-v4-flash","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"qwen3.5-plus.chat":{"summary":"Qwen3.5-Plus — Chat (real request)","value":{"model":"qwen3.5-plus","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"doubao-seed-2-0-pro-260215.chat":{"summary":"Seed 2.0 Pro — Chat (real request)","value":{"model":"doubao-seed-2-0-pro-260215","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"doubao-seed-2-0-mini-260215.chat":{"summary":"Seed 2.0 Mini — Chat (real request)","value":{"model":"doubao-seed-2-0-mini-260215","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"glm-5.2.chat":{"summary":"GLM-5.2 — Chat (real request)","value":{"model":"glm-5.2","max_tokens":1024,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"kimi-k3.chat":{"summary":"Kimi K3 — Chat (real request)","value":{"model":"kimi-k3","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"grok-4.6.chat":{"summary":"Grok 4.6 — Chat (real request)","value":{"model":"grok-4.6","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}},"MiniMax-M3.chat":{"summary":"MiniMax-M3 — Chat (real request)","value":{"model":"MiniMax-M3","max_tokens":40,"messages":[{"role":"system","content":"Answer in one short sentence."},{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true,"stream_options":{"include_usage":true}}}}}}},"responses":{"200":{"description":"The answer; with `stream: true`, server-sent events (`data: {chunk}` lines, then `data: [DONE]`)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/responses":{"post":{"operationId":"post_v1_responses","tags":["OpenAI"],"summary":"2 models: gpt-5.6, gpt-5.6-luna","x-nextlab-models":[{"model":"gpt-5.6","mode":"responses","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"input[role=user].content[type=input_image].image_url","in":"body"},{"key":"prompt","wirePath":"input","in":"body"},{"key":"system","wirePath":"instructions","in":"body"},{"key":"max_tokens","wirePath":"max_output_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning.effort","in":"body"},{"key":"reasoning_summary","wirePath":"reasoning.summary","in":"body"},{"key":"verbosity","wirePath":"text.verbosity","in":"body"},{"key":"response_format","wirePath":"text.format.type","in":"body"}],"outputPath":"","notes":["OpenAI's Responses API: instructions is the system prompt, input the messages and tool items (function_call / function_call_output). The Lab sends store: false so the upstream keeps nothing.","Streamed events: response.output_text.delta is the answer, response.reasoning_summary_text.delta the reasoning summary, response.completed the whole response with token usage."]},{"model":"gpt-5.6-luna","mode":"responses","task":"chat","flow":"sync","params":[{"key":"prompt","wirePath":"input","in":"body"},{"key":"system","wirePath":"instructions","in":"body"},{"key":"max_tokens","wirePath":"max_output_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"reasoning_effort","wirePath":"reasoning.effort","in":"body"},{"key":"reasoning_summary","wirePath":"reasoning.summary","in":"body"},{"key":"verbosity","wirePath":"text.verbosity","in":"body"},{"key":"response_format","wirePath":"text.format.type","in":"body"}],"outputPath":"","notes":["OpenAI's Responses API: instructions is the system prompt, input the messages and tool items (function_call / function_call_output). The Lab sends store: false so the upstream keeps nothing.","Streamed events: response.output_text.delta is the answer, response.reasoning_summary_text.delta the reasoning summary, response.completed the whole response with token usage."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"gpt-5.6","description":"Model ID"},"store":{"const":false,"description":"Constant for this mode"},"max_output_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"reasoning":{"type":"object","properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long the model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"summary":{"type":"string","enum":["auto","concise","detailed"],"title":"Reasoning summary","description":"Return a summary of the model's reasoning.","x-nextlab-key":"reasoning_summary"}}},"instructions":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"},"input":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"text":{"type":"object","properties":{"verbosity":{"type":"string","enum":["low","medium","high"],"title":"Verbosity","description":"How long and detailed the answer is.","x-nextlab-key":"verbosity"},"format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt).","x-nextlab-key":"response_format"}}}}}},"required":["model","store","input"],"title":"GPT-5.6 — Chat (OpenAI Responses)"},{"type":"object","properties":{"model":{"const":"gpt-5.6-luna","description":"Model ID"},"store":{"const":false,"description":"Constant for this mode"},"input":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"instructions":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"},"max_output_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"reasoning":{"type":"object","properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"],"title":"Reasoning effort","description":"How long the model thinks first: higher is more accurate, slower and dearer.","x-nextlab-key":"reasoning_effort"},"summary":{"type":"string","enum":["auto","concise","detailed"],"title":"Reasoning summary","description":"Return a summary of the model's reasoning.","x-nextlab-key":"reasoning_summary"}}},"text":{"type":"object","properties":{"verbosity":{"type":"string","enum":["low","medium","high"],"title":"Verbosity","description":"How long and detailed the answer is.","x-nextlab-key":"verbosity"},"format":{"type":"object","properties":{"type":{"type":"string","enum":["text","json_object"],"title":"Response format","description":"JSON object: the answer is valid JSON (mention JSON in the prompt).","x-nextlab-key":"response_format"}}}}}},"required":["model","store","input"],"title":"GPT-5.6 Luna — Chat (OpenAI Responses)"}]},"examples":{"gpt-5.6.responses":{"summary":"GPT-5.6 — Chat (OpenAI Responses) (real request)","value":{"model":"gpt-5.6","store":false,"max_output_tokens":200,"reasoning":{"effort":"low"},"instructions":"Answer in one short sentence.","input":"Name one use for a glass water bottle.","stream":true}},"gpt-5.6-luna.responses":{"summary":"GPT-5.6 Luna — Chat (OpenAI Responses) (sample)","value":{"model":"gpt-5.6-luna","store":false,"input":"Write a two-line slogan for a reusable water bottle made of glass.","stream":true}}}}}},"responses":{"200":{"description":"The answer; with `stream: true`, server-sent events (`data: {chunk}` lines, then `data: [DONE]`)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1/messages":{"post":{"operationId":"post_v1_messages","tags":["Anthropic"],"summary":"2 models: claude-opus-5-5, claude-sonnet-4-6","x-nextlab-models":[{"model":"claude-opus-5-5","mode":"messages","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image].source.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"system","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"top_k","wirePath":"top_k","in":"body"},{"key":"stop","wirePath":"stop_sequences","in":"body"},{"key":"thinking_budget","wirePath":"thinking.budget_tokens","in":"body"}],"outputPath":"","notes":["Anthropic's native Messages API: authenticate with x-api-key plus anthropic-version; max_tokens is required (the Lab sends 4096 unless set).","system is top-level; tool calls are tool_use blocks of the assistant turn, results tool_result blocks of the next user turn. Streamed, events go message_start, content_block_*, message_delta (stop_reason, output tokens), message_stop.","Calling Anthropic from a browser needs anthropic-dangerous-direct-browser-access: true (the Lab sends it). On OpenAI Next other models answer in this format too (translated)."]},{"model":"claude-sonnet-4-6","mode":"messages","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"messages[role=user].content[type=image].source.url","in":"body"},{"key":"prompt","wirePath":"messages[role=user].content","in":"body"},{"key":"system","wirePath":"system","in":"body"},{"key":"temperature","wirePath":"temperature","in":"body"},{"key":"max_tokens","wirePath":"max_tokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"top_p","in":"body"},{"key":"top_k","wirePath":"top_k","in":"body"},{"key":"stop","wirePath":"stop_sequences","in":"body"},{"key":"thinking_budget","wirePath":"thinking.budget_tokens","in":"body"}],"outputPath":"","notes":["Anthropic's native Messages API: authenticate with x-api-key plus anthropic-version; max_tokens is required (the Lab sends 4096 unless set).","system is top-level; tool calls are tool_use blocks of the assistant turn, results tool_result blocks of the next user turn. Streamed, events go message_start, content_block_*, message_delta (stop_reason, output tokens), message_stop.","Calling Anthropic from a browser needs anthropic-dangerous-direct-browser-access: true (the Lab sends it). On OpenAI Next other models answer in this format too (translated)."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"model":{"const":"claude-opus-5-5","description":"Model ID"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","default":4096,"x-nextlab-key":"max_tokens"},"system":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"},"temperature":{"type":"number","minimum":0,"maximum":1,"title":"Temperature","description":"0–1: higher is more varied; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample from the most likely tokens up to this probability; tune this or temperature.","x-nextlab-key":"top_p"},"top_k":{"type":"integer","minimum":1,"maximum":500,"title":"Top K","description":"Sample from only the K most likely tokens at each step.","x-nextlab-key":"top_k"},"stop_sequences":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 8).","x-nextlab-key":"stop"},"thinking":{"type":"object","properties":{"budget_tokens":{"type":"integer","minimum":1024,"maximum":64000,"title":"Thinking budget (tokens)","description":"Extended thinking: up to this many tokens of reasoning before the answer (below max output tokens). Empty = off.","x-nextlab-key":"thinking_budget"}}}},"required":["model","messages"],"title":"Claude Opus 5.5 — Chat (Anthropic Messages)"},{"type":"object","properties":{"model":{"const":"claude-sonnet-4-6","description":"Model ID"},"max_tokens":{"type":"integer","minimum":1,"maximum":128000,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","default":4096,"x-nextlab-key":"max_tokens"},"system":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"}},"required":["role","content"]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"},"temperature":{"type":"number","minimum":0,"maximum":1,"title":"Temperature","description":"0–1: higher is more varied; empty = the model's default.","x-nextlab-key":"temperature"},"top_p":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample from the most likely tokens up to this probability; tune this or temperature.","x-nextlab-key":"top_p"},"top_k":{"type":"integer","minimum":1,"maximum":500,"title":"Top K","description":"Sample from only the K most likely tokens at each step.","x-nextlab-key":"top_k"},"stop_sequences":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 8).","x-nextlab-key":"stop"},"thinking":{"type":"object","properties":{"budget_tokens":{"type":"integer","minimum":1024,"maximum":64000,"title":"Thinking budget (tokens)","description":"Extended thinking: up to this many tokens of reasoning before the answer (below max output tokens). Empty = off.","x-nextlab-key":"thinking_budget"}}}},"required":["model","messages"],"title":"Claude Sonnet 4.6 — Chat (Anthropic Messages)"}]},"examples":{"claude-opus-5-5.messages":{"summary":"Claude Opus 5.5 — Chat (Anthropic Messages) (sample)","value":{"model":"claude-opus-5-5","messages":[{"role":"user","content":"Write a two-line slogan for a reusable water bottle made of glass."}],"stream":true,"max_tokens":4096}},"claude-sonnet-4-6.messages":{"summary":"Claude Sonnet 4.6 — Chat (Anthropic Messages) (real request)","value":{"model":"claude-sonnet-4-6","max_tokens":64,"system":"Answer in one short sentence.","messages":[{"role":"user","content":"Name one use for a glass water bottle."}],"stream":true}}}}}},"responses":{"200":{"description":"The answer; with `stream: true`, server-sent events (`data: {chunk}` lines, then `data: [DONE]`)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3.1-pro-preview:streamGenerateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_1_pro_preview_streamGenerateContent","tags":["Google"],"summary":"gemini-3.1-pro-preview","x-nextlab-models":[{"model":"gemini-3.1-pro-preview","mode":"generate-content","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"contents[role=user].parts[].fileData.fileUri","in":"body"},{"key":"prompt","wirePath":"contents[role=user].parts[].text","in":"body"},{"key":"system","wirePath":"systemInstruction.parts[].text","in":"body"},{"key":"temperature","wirePath":"generationConfig.temperature","in":"body"},{"key":"max_tokens","wirePath":"generationConfig.maxOutputTokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"generationConfig.topP","in":"body"},{"key":"top_k","wirePath":"generationConfig.topK","in":"body"},{"key":"stop","wirePath":"generationConfig.stopSequences","in":"body"},{"key":"seed","wirePath":"generationConfig.seed","in":"body"},{"key":"response_format","wirePath":"generationConfig.responseMimeType","in":"body"},{"key":"thinking_level","wirePath":"generationConfig.thinkingConfig.thinkingLevel","in":"body"},{"key":"include_thoughts","wirePath":"generationConfig.thinkingConfig.includeThoughts","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Gemini-native chat: the model goes in the path; streamed, :streamGenerateContent?alt=sse (each data: line is a whole response chunk), else :generateContent.","The system prompt goes in systemInstruction, the model's turns have role model; tool calls are functionCall parts, results functionResponse parts of the next user turn. Gemini 3 wants each call's thoughtSignature back (the Lab sends Google's documented placeholder).","Authenticate with x-goog-api-key, on Google's API and on OpenAI Next alike."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contents":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","const":"user"},"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":8,"title":"Images","description":"Images the model looks at along with the message (up to 8).","x-nextlab-key":"images"}}}},"required":["text"]}}},"required":["role","parts"]}},"systemInstruction":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}}}}}},"generationConfig":{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"maxOutputTokens":{"type":"integer","minimum":1,"maximum":65536,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"topP":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample from the most likely tokens up to this probability.","x-nextlab-key":"top_p"},"topK":{"type":"integer","minimum":1,"maximum":100,"title":"Top K","description":"Sample from only the K most likely tokens at each step.","x-nextlab-key":"top_k"},"stopSequences":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 5).","x-nextlab-key":"stop"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer; empty = random.","x-nextlab-key":"seed"},"responseMimeType":{"type":"string","enum":["text/plain","application/json"],"title":"Response format","description":"JSON: the answer is valid JSON. For a structure, add generationConfig.responseSchema in the raw body.","x-nextlab-key":"response_format"},"thinkingConfig":{"type":"object","properties":{"thinkingLevel":{"type":"string","enum":["low","high"],"title":"Thinking level","description":"How long Gemini 3 thinks first; empty = the model's default (high).","x-nextlab-key":"thinking_level"},"includeThoughts":{"type":"boolean","title":"Include thoughts","description":"Return a summary of the model's thinking with the answer.","x-nextlab-key":"include_thoughts"}}}}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"}},"required":["contents"],"title":"Gemini 3.1 Pro — Chat (Gemini generateContent)"},"examples":{"gemini-3.1-pro-preview.generate-content":{"summary":"Gemini 3.1 Pro — Chat (Gemini generateContent) (sample)","value":{"contents":[{"role":"user","parts":[{"text":"Write a two-line slogan for a reusable water bottle made of glass."}]}]}}}}}},"responses":{"200":{"description":"The answer; with `stream: true`, server-sent events (`data: {chunk}` lines, then `data: [DONE]`)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}},"/v1beta/models/gemini-3.8-flash:streamGenerateContent":{"post":{"operationId":"post_v1beta_models_gemini_3_8_flash_streamGenerateContent","tags":["Google"],"summary":"gemini-3.8-flash","x-nextlab-models":[{"model":"gemini-3.8-flash","mode":"generate-content","task":"chat","flow":"sync","params":[{"key":"images","wirePath":"contents[role=user].parts[].fileData.fileUri","in":"body"},{"key":"prompt","wirePath":"contents[role=user].parts[].text","in":"body"},{"key":"system","wirePath":"systemInstruction.parts[].text","in":"body"},{"key":"temperature","wirePath":"generationConfig.temperature","in":"body"},{"key":"max_tokens","wirePath":"generationConfig.maxOutputTokens","in":"body"},{"key":"stream","wirePath":"stream","in":"body"},{"key":"top_p","wirePath":"generationConfig.topP","in":"body"},{"key":"top_k","wirePath":"generationConfig.topK","in":"body"},{"key":"stop","wirePath":"generationConfig.stopSequences","in":"body"},{"key":"seed","wirePath":"generationConfig.seed","in":"body"},{"key":"response_format","wirePath":"generationConfig.responseMimeType","in":"body"},{"key":"thinking_level","wirePath":"generationConfig.thinkingConfig.thinkingLevel","in":"body"},{"key":"include_thoughts","wirePath":"generationConfig.thinkingConfig.includeThoughts","in":"body"}],"outputPath":"candidates[0].content.parts[].inlineData.data","notes":["Gemini-native chat: the model goes in the path; streamed, :streamGenerateContent?alt=sse (each data: line is a whole response chunk), else :generateContent.","The system prompt goes in systemInstruction, the model's turns have role model; tool calls are functionCall parts, results functionResponse parts of the next user turn. Gemini 3 wants each call's thoughtSignature back (the Lab sends Google's documented placeholder).","Authenticate with x-goog-api-key, on Google's API and on OpenAI Next alike."]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"generationConfig":{"type":"object","properties":{"maxOutputTokens":{"type":"integer","minimum":1,"maximum":65536,"title":"Max output tokens","description":"Longest answer in tokens; also caps the cost.","x-nextlab-key":"max_tokens"},"thinkingConfig":{"type":"object","properties":{"thinkingLevel":{"type":"string","enum":["low","high"],"title":"Thinking level","description":"How long Gemini 3 thinks first; empty = the model's default (high).","x-nextlab-key":"thinking_level"},"includeThoughts":{"type":"boolean","title":"Include thoughts","description":"Return a summary of the model's thinking with the answer.","x-nextlab-key":"include_thoughts"}}},"temperature":{"type":"number","minimum":0,"maximum":2,"title":"Temperature","description":"Higher is more varied, lower more focused; empty = the model's default.","x-nextlab-key":"temperature"},"topP":{"type":"number","minimum":0,"maximum":1,"title":"Top P","description":"Sample from the most likely tokens up to this probability.","x-nextlab-key":"top_p"},"topK":{"type":"integer","minimum":1,"maximum":100,"title":"Top K","description":"Sample from only the K most likely tokens at each step.","x-nextlab-key":"top_k"},"stopSequences":{"type":"array","items":{"type":"string","maxLength":1000},"title":"Stop sequences","description":"One per line; generation stops at any of them (up to 5).","x-nextlab-key":"stop"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Seed","description":"Same seed and parameters try to give the same answer; empty = random.","x-nextlab-key":"seed"},"responseMimeType":{"type":"string","enum":["text/plain","application/json"],"title":"Response format","description":"JSON: the answer is valid JSON. For a structure, add generationConfig.responseSchema in the raw body.","x-nextlab-key":"response_format"}}},"systemInstruction":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":8000,"title":"System prompt","description":"Instructions placed before the conversation: role, tone, format.","x-nextlab-key":"system"}},"required":["text"]}}}},"contents":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","const":"user"},"parts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":32000,"title":"Message","description":"What to ask. Send the same message to several models to compare them.","x-nextlab-key":"prompt"},"fileData":{"type":"object","properties":{"fileUri":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":8,"title":"Images","description":"Images the model looks at along with the message (up to 8).","x-nextlab-key":"images"}}}},"required":["text"]}}},"required":["role","parts"]}},"stream":{"type":"boolean","title":"Stream","description":"Show the answer as it's written (server-sent events).","default":true,"x-nextlab-key":"stream"}},"required":["contents"],"title":"Gemini 3.8 Flash — Chat (Gemini generateContent)"},"examples":{"gemini-3.8-flash.generate-content":{"summary":"Gemini 3.8 Flash — Chat (Gemini generateContent) (real request)","value":{"generationConfig":{"maxOutputTokens":400,"thinkingConfig":{"thinkingLevel":"low"}},"systemInstruction":{"parts":[{"text":"Answer in one short sentence."}]},"contents":[{"role":"user","parts":[{"text":"Name one use for a glass water bottle."}]}]}}}}}},"responses":{"200":{"description":"The answer; with `stream: true`, server-sent events (`data: {chunk}` lines, then `data: [DONE]`)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/error_content_blocked"},"401":{"$ref":"#/components/responses/error_invalid_key"},"403":{"$ref":"#/components/responses/error_insufficient_quota"},"404":{"$ref":"#/components/responses/error_upstream_model_not_found"},"406":{"$ref":"#/components/responses/error_upstream_rejected"},"429":{"$ref":"#/components/responses/error_overloaded"},"500":{"$ref":"#/components/responses/error_upstream_unreachable"},"503":{"$ref":"#/components/responses/error_no_channel"},"524":{"$ref":"#/components/responses/error_timeout"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Authorization: Bearer $OPENAI_NEXT_API_KEY"}},"responses":{"error_invalid_key":{"description":"Invalid key — Missing or wrong key, or a key from the other platform — API and DRAW keys are not interchangeable. Use a key issued by the selected platform; the Lab detects a key's platform via /v1/models.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"}}}}},"example":{"error":{"message":"Invalid token. (request id: 2026101104530173855870796e93ae3rpPkpEIk)","type":"shell_api_error"}}}}},"error_no_channel":{"description":"Model not available — No channel on this platform serves the model for your key's group: a typo, a model listed only on the other platform, or a channel that is down. Check the model ID; see the Lab status page for which platform serves it, or switch to a similar model.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"}}}}},"example":{"error":{"message":"Current group default has no available channels for model kling-v2-6 under billing mode [pay-as-you-go, pay-per-request] (request id: 2026101103273627171594896e93ae3H2QvDMSv)","type":"shell_api_error"}}}}},"error_overloaded":{"description":"Upstream overloaded — The upstream model service is busy and the gateway refused the task. Retry later, or switch to a similar model.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":"string"}}},"example":{"message":"{\"error\":{\"message\":\"当前模型负载较高，请稍候重试，或者切换其他模型\"}}","type":"task_error","code":"fail_to_fetch_task"}}}},"error_upstream_unreachable":{"description":"Upstream unreachable — The gateway could not reach the upstream service (e.g. ECONNREFUSED). Failed requests may still be billed. Retry later; if it persists, check the model status page.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":"string"}}},"example":{"message":"{\"error\":{\"message\":\"connect ECONNREFUSED <upstream>\"}}","type":"task_error","code":"fail_to_fetch_task"}}}},"error_upstream_rejected":{"description":"Upstream rejected — The upstream service refused the request and the gateway relayed its error (e.g. the upstream account ran out of credit). A platform-side problem unrelated to your key; switch models or try later.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"example":{"code":-1,"message":"not ok match: {\"code\":\"permission-denied\",\"error\":\"Your team <redacted> has either used all available credits or reached its monthly spending limit. To continue making API requests, please purchase more credits or raise your spending limit.\"}"}}}},"error_upstream_model_not_found":{"description":"Model missing upstream — The platform forwarded the request to an upstream account that has no access to the model (or endpoint); the model is listed but can't run. A platform-side problem, not your parameters; use the other platform or a similar model.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":"string"}}}}},"example":{"error":{"message":"","type":"Not Found","code":"InvalidEndpointOrModel.NotFound"}}}}},"error_timeout":{"description":"Request timed out — A synchronous endpoint (such as image generation) ran past Cloudflare's 100-second limit. On the API platform, use the fallback https://us.api.openai-next.com (same routes).","content":{"application/json":{"schema":{"type":"object"}}}},"error_insufficient_quota":{"description":"Not enough credit — The key's balance or limit doesn't cover the pre-charge — async tasks (video and the like) are pre-charged at their maximum and settled afterwards. Top up the key or raise its limit, or use cheaper settings (shorter, lower resolution).","content":{"application/json":{"schema":{"type":"object"}}}},"error_content_blocked":{"description":"Blocked by content policy — The prompt, a reference image or the result tripped the upstream's content policy. Change the prompt or reference images and try again.","content":{"application/json":{"schema":{"type":"object"}}}}}}}