1. chat
VectorNode AI API Gateway
  • VectorNode AI API Gateway
    • Introduction
    • Online Debugging Guide
    • Send Your First Request
    • API gateway
      • API Reference
      • API Reference
      • API Reference
      • API Reference
      • API Reference
      • API Reference
      • API Key
      • API Reference
    • (Chat)
      • ChatGpt
        • ChatGPTaudio(Audio)
          • GPT-4o-audio
          • audio whisper-1
          • audio gpt-4o-transcribe
          • gpt-4o-mini-tts
          • API Reference
        • ChatGPT (Chat)
          • API Reference
          • API Reference
          • API Reference
          • API Reference
          • API Reference
          • ( ) best64
          • API Reference
          • API Reference
          • Function calling
          • API Reference
          • model
          • API Reference
          • API Reference
          • model
          • qwen-mt-turbo
          • deepseek v3.1 ( )
          • deepseek-ocr
        • ChatGPT (Completions)
          • API Reference
          • API Reference
        • ChatGPT (Embeddings)
          • API Reference
          • API Reference
        • API Reference
          • API Reference
      • Anthropic Claude
        • API Reference
        • API Reference
        • API Reference
          • API Reference
          • API Reference
          • API Reference
          • API Reference
          • API Reference
          • PDFbase64 is also supported
          • API Reference
        • chat
          • API Reference
          • API Reference
          • API Reference
          • API Reference
          • API Reference
      • Gemini
        • API Reference
          • text
          • text -
          • text + -
          • image
          • image gemini-2.5-flash-image
          • image gemini-2.5-flash-image
          • image gemini-3-pro-image-preview +
          • image
          • image
          • API Reference
          • API Reference
          • Documentation
          • URL context [ ]
          • API Reference
          • google search
          • video
          • URL context
          • audio
          • Embeddings
          • TTS text
          • text gemini-3-pro-preview:generateContent
          • Imagen image
          • gemini-ttstext
          • text
        • chat
          • geminiimage [chat ]
          • [chat ]
          • - 1 [chat ]
          • - 2 [chat ]
          • [chat ]
          • + file [chat ]
          • text [chat ]
    • (Responses)
      • Responses API Chat API
      • modelresponse
      • API Reference
      • modelresponse( Return)
      • modelresponse ( )
      • API Reference
      • modelresponse gpt-5
      • Copy
    • model
      • README
      • API Reference
      • Midjourney
        • image
        • Imagine
        • API Reference
        • API Reference
        • image seed
        • Action
        • Blend
        • Describe
        • Modal
      • Ideogram
        • Generate 3.0( )Generate
        • Generate 3.0(image )Edit
        • Generate 3.0(image )Remix
        • Generate 3.0(image )Reframe
        • Generate 3.0( ) Replace Background
        • ideogram( )
        • Remix( )
        • Upscale( )
        • Describe( )
      • GPT Image-1
        • gpt-image-1
        • gpt-image-1
        • gpt-image-1
        • gpt-image-1.5
        • gpt-image-1.5
        • gpt-image-1.5
        • gpt-image-2
        • gpt-image-2
        • gpt-image-2-all
      • Grok Image
        • Image
        • image
      • DALL·E 3
        • DALL·E 3
      • FLUX
        • API Reference
          • Flux (OpenAI dall-e-3 )
          • Flux (OpenAI dall-e-3 )
        • Replicate
          • Flux
          • Setup Guide
          • black-forest-labs/flux-kontext-dev
          • API Reference
      • Fal.ai
        • API Reference
        • request
        • /fal-ai/nano-banana
        • /fal-ai/nano-banana/edit image
      • AIGC
        • API Reference
        • request
        • API Reference
      • Qwen
        • qwen-image-max
        • z-image-turbo
        • qwen-image-edit-2509
    • videomodel
      • veo video
        • video
          • API Reference
          • video
          • video, image
          • API Reference
          • video( )
        • OpenAI video
          • openai video, image
          • openai
          • openai video
      • luma video
        • API Reference
          • API Reference
          • video
          • video
      • Runway video
        • API Reference
        • video
        • video ( )
      • video
        • API Reference
        • video
        • video
        • video
        • video
      • sora video
        • video
          • API Reference
          • video, image sora-2
          • video sora-2
          • video sora-2-pro
          • video ( Character)
          • API Reference
        • chat
          • video
            POST
          • video, image
            POST
          • video
            POST
        • OpenAI video
          • video
          • video
          • openai video
          • openai video
          • openai
      • grok video
        • video
          • video
          • API Reference
          • video
        • OpenAIvideo
          • openai video,
          • API Reference
      • AIGCvideo
        • API Reference
        • API Reference
        • request
        • API Reference
      • video ( )
        • doubao-2.0 video
    • GPTs
      • API Reference
      • GPTs
    • API Reference
      • API Reference
      • API Reference
      • API Reference
      • model
      • API Reference
      • API Reference
      • API Reference
      • Setup Guide
      • API Reference
      • API Reference
    • Suno
      • Description
      • Parameter
      • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • API Reference
        • audiofile
        • request
        • API Reference
        • API Reference
        • API Reference
        • API Reference
    • Python
      • python text
      • python text
      • python Embeddings
      • python DALL·E
      • python openai function-calling demo
      • python langchain openai demo
      • python llama_index
      • Python
      • Python gpt-4o image- image
      • Python gpt-4o image
      • Python Claude image
      • python
      • gpt realtimemodel
      • python request request demo
      • python gpt-image-1 image
      • python openai ( AutoGPT,langchain )
      • python
    • Rerank model
      • API Reference
    • Kling
      • Callback
      • video
        • video
        • API Reference
      • Omni-Video
        • Omni-Video
        • API Reference
      • API Reference
        • API Reference
        • API Reference
      • Omni-Image
        • Omni-Image
        • API Reference
    • Replicate
      • Setup Guide
      • Flux
      • API Reference
      • - modelversion(predictions)
      • stability-ai/stable-diffusion
      • stability-ai/sdxl
      • stability-ai/stable-diffusion-inpainting
      • stability-ai/stable-diffusion-img2img
      • lucataco/flux-schnell-lora
      • lucataco/flux-dev-lora
      • andreasjansson/stable-diffusion-animation
      • sujaykhandekar/object-removal
      • cjwbw/rembg
      • lucataco/animate-diff
      • ideogram-ai/ideogram-v2-turbo
      • black-forest-labs/flux-kontext-dev
      • minimax/video-01-live
      • minimax/video-01
      • recraft-ai/recraft-v3
      • recraft-ai/recraft-v3-svg
      • black-forest-labs/flux-1.1-pro-ultra
      • black-forest-labs/flux-kontext-pro
      • black-forest-labs/flux-kontext-max
      • flux-kontext-apps/multi-image-kontext-max
      • flux-kontext-apps/multi-image-kontext-pro
      • lucataco/remove-bg
      • riffusion/riffusion
      • black-forest-labs/flux-fill-dev
      • black-forest-labs/flux-fill-pro
      • google/imagen-4-fast
      • google/imagen-4-ultra
      • google/imagen-4
      • prunaai/vace-14b
      • bytedance/seedream-4
    • MiniMax
      • API Reference
      • API Reference
      • video
      • audio
      • audio
      • video
      • API Reference
      • video
      • ( video, audio )
      • text
      • API Reference
      • API Reference
    • Fal.ai Aggregation Platform
      • Setup Guide
      • falai-veo3 video
        • /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
      • request
      • /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 Setup
      • php image demo
    • Node.js Setup
    • Client and Tool Integration Guides
      • Codex
      • OpenClaw Clawdbot API gateway
      • N8N API gateway
      • opencode
      • Gemini CLI API gateway
      • Claude Code
      • CherryStudio cluade MCP
      • Cherry Studio
      • Cherry Studio banana pro 4K
      • CherryStudio o4
      • Setup Guide
      • dify model
      • cline
      • aider
      • Cursor
      • lobechat
      • ChatBox Setup Guide
      • Open Source GPT Academic Setup
      • NextChat Setup Guide
      • Zotero GPT Setup Guide
      • Claude Dev Setup Guide
      • Immersive Translate GPT Setup
      • ChatGPT Sidebar Extension Setup
      • chatgpt-on-wechat Setup Guide
      • GPT Academic Setup Guide
      • RikkaHub Setup Guide
      • Coze Workflow API Gateway Setup
      • n8n Workflow: Local Image to Video
      • OpenClaw Latest Version Setup
      • OpenClaw with CC Switch Setup
    • Help Center
      • Reasoning Output Fields
      • HTTP Status Codes
      • Demo Image Handling
      • Upload a Demo Image
  1. chat

video

POST
/v1/chat/completions
Creates a chat completion or message response using an OpenAI-compatible request format.
Reference documentation:
https://platform.openai.com/docs/api-reference/chat/create

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数

Body 参数application/json

示例
{
  "model": "sora-2",
  "max_tokens": 1000,
  "messages": [
    {
      "role": "user",
      "content": "an astronaut golden retriever named Sora levitates around an intergalactic pup-themed space station with a tiny jet back that propels him. gorgeous specular lighting and comets fly through the sky, retro-future astro-themed music plays in the background. light glimmers off the dog's eyes. the dog initially propels towards the space station with the doors opening to let him in. the shot then changes. now inside the space station, many tennis balls are flying around in zero gravity. the dog's astronaut helmet opens up so he can grab one. 35mm film, the intricate details and texturing of the dog's hair are clearly visible and the light of the comets shimmers off the fur."
    }
  ],
  "stream": true
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "model": "sora-2",
  "max_tokens": 1000,
  "messages": [
    {
      "role": "user",
      "content": "an astronaut golden retriever named Sora levitates around an intergalactic pup-themed space station with a tiny jet back that propels him. gorgeous specular lighting and comets fly through the sky, retro-future astro-themed music plays in the background. light glimmers off the dog'\''s eyes. the dog initially propels towards the space station with the doors opening to let him in. the shot then changes. now inside the space station, many tennis balls are flying around in zero gravity. the dog'\''s astronaut helmet opens up so he can grab one. 35mm film, the intricate details and texturing of the dog'\''s hair are clearly visible and the light of the comets shimmers off the fur."
    }
  ],
  "stream": true
}'

返回响应

🟢200OK
application/json
Bodyapplication/json

示例
{
    "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
    }
}
修改于 2026-05-16 08:10:47
上一页
API Reference
下一页
video, image
Built with