Key4UAPI Interface Integration
  1. ChatGPT Chat
Key4UAPI Interface Integration
  • Key4U English
    • Introduction
    • Contact
    • Quick Start with API
    • API Group Comparison Table
    • API Group Characteristics & Pricing Differences
    • Key4U Agent registration
    • Chat
      • ChatGPT API
        • ChatGPT Audio
          • GPT-4o-audio
          • Audio to Text whisper-1
          • Audio to Text gpt-4o-transcribe
          • Create voice gpt-4o-mini-tts
          • Create translation (not supported)
        • ChatGPT Chat
          • Chat Completion Object
          • Chat completion chunk object
          • Create Chat Completion (Streaming)
            POST
          • Create Chat Completion (Non-Streaming)
            POST
          • Create Chat Image Recognition (Streaming)
            POST
          • Create Chat Image Recognition (Streaming) best64
            POST
          • Create Chat Image Recognition (Non-streaming)
            POST
          • Create Chat Generation Diagram (Non-streaming)
            POST
          • Official Function Calling Invocation
            POST
          • Official N Testing
            POST
          • List models
            GET
          • Create Chat Function Call
            POST
          • Create Structured Output
            POST
          • Controlling Reasoning Model Effort Level
            POST
          • Create chat completion qwen-mt-turbo
            POST
          • Create Chat Completion - DeepSeek v3.1 Thinking Level (Streaming)
            POST
          • deepseek-ocr recognition
            POST
        • ChatGPT Auto-Completion (Completions)
          • Completion object
          • Creation completed
        • ChatGPT Embeddings
          • Embedded Object
          • Create Embedding
        • Web Search
          • web search
      • Anthropic Claude API
        • Chat Completion Object
        • Chat completion chunk object
        • Native format
          • Create Chat Completion (Streaming)
          • Create Function Call (Streaming)
          • Creating Formatted Output
          • Create Thinking Chat
          • PDF Support
          • PDF supports base64 format
          • Online Search
        • chat-compatible format
          • Create Thinking Chat
          • Create Chat Completion (Streaming)
          • Create Chat Completion (Non-Streaming)
          • Create Chat Image Recognition (Streaming)
          • Create Chat Image Recognition (Non-Streaming)
      • Google Gemini API
        • Native format
          • Text Generation
          • Text Generation - Stream
          • Text Generation + Thinking Stream
          • Image Generation
          • Image Generation gemini-2.5-flash-image
          • Image Generation gemini-2.5-flash-image Control Aspect Ratio
          • Image Generation gemini-3-pro-image-preview Control Aspect Ratio + Clarity
          • Image Editing
          • Image Understanding
          • Formatted Output
          • Function call
          • Document Understanding
          • URL context [native format]
          • Code Execution
          • google search
          • Video Understanding
          • URL context
          • Audio Understanding
          • Embeddings
          • TTS Text-to-Speech
          • Text generation gemini-3-pro-preview:generateContent
          • Imagen Generate Images
          • gemini-tts text-to-speech
          • Text Embedding
        • chat-compatible format
          • Gemini Image Generation API [Chat-Compatible Format]
          • Chat Interface [chat compatible format]
          • Chat Interface - Thought 1 [chat compatible format]
          • Chat Interface - Thought 2 [chat compatible format]
          • Image Recognition API [chat-compatible format]
          • Chat + Read File Interface [chat compatible format]
          • Text Embedding [chat compatible format]
    • Chat (Responses)
      • Responses API vs Chat API Comparison
      • Create Model Response
      • Create function call
      • Create Model Response (Streaming Return)
      • Create Model Response (Control Thinking Length)
      • Create Web Search
      • Create model response gpt-5 enable thinking
      • Create Function Call Copy
    • Drawing Model
      • README
      • Image Object
      • Midjourney
        • Upload Image
        • Submit Imagine Task
        • Query task status by task ID
        • Query tasks by ID list
        • Get the seed of the task image
        • Execute Action
        • Submit Blend Task
        • Submit Describe Task
        • Submit Modal
      • Ideogram
        • Generate 3.0 (Text-to-Image) Generate
        • Generate 3.0 (Image Editing) Edit
        • Generate 3.0 (Image Remaster) Remix
        • Generate 3.0 (Image Reconstruction) Reframe
        • Generate 3.0 (Replace Background) Replace Background
        • ideogram (text-to-image)
        • Remix (Blend Image)
        • Upscale (Enhance to High Definition)
        • Describe
      • GPT Image Series
        • Create gpt-image-1
        • Edit gpt-image-1
        • Mask gpt-image-1
        • Create gpt-image-1.5
        • Edit gpt-image-1.5
        • Mask gpt-image-1.5
      • DALL·E 3
        • Create DALL·E 3
      • FLUX Series
        • GPT compatible format
          • Flux Image Creation (OpenAI dall-e-3 Format)
          • Flux Editor (OpenAI DALL-E-3 Format)
        • Replicate Official Format
          • Flux Resolution
          • Integration Tutorial
          • Create task black-forest-labs/flux-kontext-dev
          • Query Task
      • Doubao Series
        • doubao-seedream-3-0-t2i-250415
        • doubao-seededit-3-0-i2i-250628
        • doubao-seedream-4-0-250828-text-to-image
        • doubao-seedream-4-0-250828-image-to-image
        • doubao-seedream-4-0-250828-multi-image-to-image
        • doubao-seedream-4-5-251128 Text-to-Image (Pure Text Input, Single Image Output)
        • doubao-seedream-4-5-251128 Image-to-Image Generation (Single Image Input, Single Image Output)
        • doubao-seedream-4-5-251128 Multi-image Fusion (Multiple Image Input, Single Image Output)
        • doubao-seedream-4-5-251128 Image Group Output (Multiple Image Output)
        • doubao-seedream-4-5-251128 Single Image to Image Group
        • doubao-seedream-4-5-251128 Multiple reference image generation group image
      • Fal.ai platform
        • Status Code
        • Get request result
        • /fal-ai/nano-banana Text-to-Image
        • /fal-ai/nano-banana/edit Image Editing
      • Tencent AIGC Image Generation
        • Status Code
        • Get request result
        • Create Task
      • Qwen Series
        • qwen-image-max
        • z-image-turbo
        • qwen-image-edit-2509
    • Video Model
      • veo video generation
        • Unified Video Format
          • Status Code
          • Create Video
          • Create video with images
          • Query Task
          • Create Video (Reference Image)
        • OpenAI Video Format
          • OpenAI create video with image
          • OpenAI Query Task
          • openai download video
      • Luma video generation
        • Official API Format
          • Status Code
          • Submit Video Generation Task
          • Extended Video
        • Query Task
          • Query a Single Task
          • Batch Retrieve Tasks
      • Runway Video Generation
        • Status Code
        • Submit video generation task
        • Query Video Task (Free)
      • Minimax Video Generation
        • Status Code
        • Submit video generation task
        • Video Task Status Query
        • Image-to-Video
        • First and Last Frame Video
      • Doubao Video Generation
        • Text-to-Video Example
        • Image-to-Video - First Frame
        • seedance-lite-first-and-last-frames
        • Image to Video - Base64 Encoding
        • seedance-lite-reference image
        • Query a Single Task
        • Query Video Generation Task List - Default
        • Query Video Generation Task List - Search Multiple Task IDs
        • seedance-1-5-pro-first-and-last-frames
        • seedance-1-5-pro
      • Sora video generation
        • Unified Video Format
          • Query Task
          • Create video with images sora-2
          • Create video sora-2
          • Create video sora-2-pro
          • Create Video (with Character)
        • chat format
          • Create Video
          • Create video with images
          • Continuous Modification Video Generation
        • OpenAI Official Video Format
          • OpenAI create video with image
          • Creating Videos with Storyboards
          • OpenAI create video with image private mode
          • OpenAI Create Video (with Character)
          • OpenAI video editing
          • openai download video
          • OpenAI Query Task
        • Create Role
      • Grok Video Generation
        • Unified Video Format
          • Status Code
          • Create Video
          • Query Task
      • Tongyi Wanxiang Video Generation
        • Generate Video
        • Video Query
      • Tencent AIGC Video Generation
        • Status Code
        • Create Task
        • Get request result
    • GPTs Related
      • Introduction
      • GPTs Conversation
    • Text-to-Music Suno
      • Instructions
      • parameter
      • Task Submission
        • Generate Song (Inspiration Mode)
        • Generate Song (Custom Mode)
        • Generate Song (Continuation Mode)
        • Generate Song (Artist Style)
        • Generate Song (Upload Song for Secondary Creation)
        • Generate Song (Concatenate Song)
        • Generate Lyrics
        • Song Concatenation
        • Report upload completed
        • Query Upload Processing Status
        • Initialize audio file
        • Request Upload Authorization
        • S3 Upload Example
        • Scenario 1: Inspiration Mode
        • Scenario 2: Custom.Lyrics.SongName
        • Scenario 3: Pure Music - Custom
      • Query Interface
        • Batch Retrieve Tasks
        • Query a Single Task
        • Get WAV
        • Timing: Lyrics, Audio Timeline
        • Get Scene Details
    • Python Configuration Methods
      • Python Speech-to-Text
      • Python Text-to-Speech
      • Python Using Embeddings for Vectorization
      • Python Calling DALL·E
      • Simple Python OpenAI Function-Calling Demo
      • Simple Python LangChain calling OpenAI demo
      • Python llama_index Configuration
      • Python Fundamentals Conversation
      • Python uses gpt-4o to recognize images - local images
      • Using Python with GPT-4o to Recognize Images
      • Using Claude to Recognize Images in Python
      • Python library streaming output
      • GPT Realtime Model Invocation
      • Python request streaming output demo
      • Python using gpt-image-1 to create and edit images
      • Python OpenAI official library (using AutoGPT, langchain, etc.)
      • Python continuous conversation
    • Rerank Reranking Model
      • Reordering
    • Kling Platform
      • Callback Protocol
      • Text-to-video
        • Text-to-video
        • Query Task (Single)
      • Image-to-Video
        • Image-to-Video
        • Query Task (Single)
      • Omni-Video
        • Omni-Video
        • Query Task (Single)
      • Multi-image reference video
        • Multi-image reference video
        • Query Task (Single)
      • Multimodal Video Editing
        • Initialize video to be edited
        • Add Video Selection
        • Delete Video Selection
        • Preview Selected Region Video
        • Multimodal Video
        • Query Task (Single)
      • Video Extension
        • Video Extension
        • Query Task (Single)
      • Video Effects
        • Video Effects
        • Query Task (Single)
      • Image Generation
        • Image Generation
        • Query Task (Single)
      • Multi-image reference image generation
        • Multi-image reference image generation
        • Query Task (Single)
      • Omni-Image
        • Omni-Image
        • Query Task (Single)
      • Expand image
        • Expand image
        • Query Task (Single)
      • Image Recognition
        • Image Recognition
      • Digital human
        • Digital human
        • Query Task (Single)
      • Text-to-Speech Sound Effects
        • Text-to-Speech Sound Effects
        • Query Task (Single)
      • Video-to-Audio
        • Video-to-Audio
        • Query Task (Single)
      • Speech Synthesis
        • Speech Synthesis
      • Virtual Try-On
        • Virtual Try-On
        • Query Task (Single)
      • lip-sync
        • Face Recognition
        • lip-sync
        • Query Task (Single)
      • Custom Voice
        • Custom Voice
        • Query Custom Voice (Single)
        • Query Official Voice
        • Delete Custom Voice
      • Action Control
        • Action Control
        • Query Task (Single)
      • subject
        • subject
    • Replicate Aggregation Platform
      • Integration Tutorial
      • Flux Resolution
      • Query Task
      • Create Task - Via Model Version (predictions)
      • Create task stability-ai/stable-diffusion
      • Create task stability-ai/sdxl
      • Create Task stability-ai/stable-diffusion-inpainting
      • Create task stability-ai/stable-diffusion-img2img
      • Create task lucataco/flux-schnell-lora
      • Create task lucataco/flux-dev-lora
      • Create task andreasjansson/stable-diffusion-animation
      • Create task sujaykhandekar/object-removal
      • Create task cjwbw/rembg
      • Create task lucataco/animate-diff
      • Create task ideogram-ai/ideogram-v2-turbo
      • Create task black-forest-labs/flux-kontext-dev
      • Create task minimax/video-01-live
      • Create task minimax/video-01
      • Create task recraft-ai/recraft-v3
      • Create task recraft-ai/recraft-v3-svg
      • Create task black-forest-labs/flux-1.1-pro-ultra
      • Create task black-forest-labs/flux-kontext-pro
      • Create task black-forest-labs/flux-kontext-max
      • Create task flux-kontext-apps/multi-image-kontext-max
      • Create task flux-kontext-apps/multi-image-kontext-pro
      • Create task lucataco/remove-bg
      • Create task riffusion/riffusion
      • Create task black-forest-labs/flux-fill-dev
      • Create task black-forest-labs/flux-fill-pro
      • Create task google/imagen-4-fast
      • Create task google/imagen-4-ultra
      • Create task google/imagen-4
      • Create task prunaai/vace-14b
      • Create task bytedance/seedream-4
    • Minimax Platform
      • Create Asynchronous Text-to-Speech Task V2
      • Synchronous Text-to-Speech V2
      • Text-to-Image-to-Video Generation Task
      • Upload Reproduced Audio
      • Upload Sample Audio
      • First and Last Frame Video Generation
      • Timbre Quick Replication
      • Query video generation task status
      • Retrieval (for video download, asynchronous audio download)
      • Text Synthesis
      • Query Speech Synthesis Task Status
      • Timbre Design
    • minimax-voice (TTS)
      • Generate speech from Minimax
    • Vidu Platform: Video Generation, Image Generation, Audio Generation
      • Status Code
      • Create a text-to-video task
      • Create Image-to-Video Task
      • Create Image Generation Task
      • Create Text-to-Speech Audio Task
      • Speech Synthesis
      • Create Reference Video Task
      • Create First and Last Frame Generated Video Task
      • Get request result
    • Fal-ai Aggregation Platform
      • Integration Tutorial
      • falai-veo3 video generation
        • /fal-ai/veo3
        • /fal-ai/veo3/fast/image-to-video
        • /fal-ai/veo3/fast
        • /fal-ai/veo3/requests/{request_id}
        • /fal-ai/veo3/image-to-video
      • Get request result
      • /fal-ai/flux-1/dev
      • /fal-ai/flux-1/dev/image-to-image
      • /fal-ai/flux-1/dev/redux
      • /fal-ai/flux-1/schnell/redux
      • /fal-ai/flux-pro/kontext
      • /fal-ai/flux-pro/kontext/text-to-image
      • /fal-ai/flux-pro/kontext/max
      • /fal-ai/flux-pro/kontext/max/multi
      • /fal-ai/wan/v2.2-a14b/image-to-image
      • /fal-ai/bytedance/seedream/v4/text-to-image
      • /fal-ai/bytedance/seedream/v4/edit
      • /fal-ai/vidu/reference-to-image
      • /fal-ai/imagen4/preview
      • /fal-ai/qwen-image-edit-lora
      • /fal-ai/qwen-image-edit-plus
      • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
      • /fal-ai/kling-video/v2.5-turbo/pro/image-to-video
      • /fal-ai/flux-lora
      • /fal-ai/flux-lora/image-to-image
      • /fal-ai/flux-lora/inpainting
      • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
      • /fal-ai/qwen-image-edit-lora
    • PHP Configuration Methods
      • PHP Image Editing Demo
    • Node.js configuration methods
      • Node.js Basic Conversation
    • Tutorials for Various Plugins/Software
      • Codex Configuration Tutorial
      • OpenClaw Clawdbot Custom Relay Station Configuration Tutorial
      • N8N Workflow Using Relay API Tutorial
      • OpenCode Configuration Tutorial
      • Gemini CLI Relay Station Configuration and Usage Tutorial
      • Claude Code Installation and Usage Tutorial
      • CherryStudio Calling Claude MCP
      • Cherry Studio Configuration Tutorial
      • Cherry Studio Configuration Tutorial for Banana Pro 4K and Resolution Settings
      • CherryStudio Configuration o4 Reasoning Level
      • Dou Zi Workflow Simple Configuration from Input to URL Retrieval
      • Add Model to Dify
      • Cline Configuration Tutorial
      • Aider Configuration Tutorial
      • Cursor Configuration Tutorial
      • LobChat Setup Tutorial
      • ChatBox (Recommended)
      • Open Source gpt_academic
      • NextChat Setup Tutorial
      • Zotero GPT Configuration Method
      • CLAUDE DEV Configuration Tutorial
      • Immersive Translation - Configure GPT Translation
      • Browser Extension ChatGPT Sidebar
      • ChatGPT-on-WeChat Configuration Tutorial
      • ChatGPT GPT Academic Optimization Configuration GPT Tutorial
      • RikkaHub Configuration Tutorial
      • Coze Workflow Relay API Tutorial
      • n8n Workflow Example: Fetching Local Images and Generating Videos
      • OpenClaw Latest Version Custom Relay Station Configuration Tutorial
    • Help Center
      • AI return field: thinking-related
      • HTTP Status Codes and Their Meanings
      • Self-hosted Image Hosting API
  1. ChatGPT Chat

Create chat completion qwen-mt-turbo

POST
/v1/chat/completions
Given a prompt, the model will return one or more predicted completions, and can also return the probability of alternative tokens at each position.
Create completions for the provided prompt and parameters
Official documentation: https://help.aliyun.com/zh/model-studio/machine-translation#d8aee140d1ows

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{\n  "model": "qwen-mt-turbo",\n  "messages": [\n    {\n      "role": "user",\n      "content": "I didn'\''t laugh after watching this video"\n    }\n  ],\n  "translation_options": {\n    "source_lang": "auto",\n    "target_lang": "English"\n  }\n}'
Response Response Example
{
    "id": "chatcmpl-123",
    "object": "chat.completion",
    "created": 1677652288,
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "\n\nHello there, how may I assist you today?"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 9,
        "completion_tokens": 12,
        "total_tokens": 21
    }
}
Modified at 2026-03-06 15:34:51
Previous
Controlling Reasoning Model Effort Level
Next
Create Chat Completion - DeepSeek v3.1 Thinking Level (Streaming)
Built with