PoloAPI 接口文档
首页
Polo首页
首页
Polo首页
  1. chat格式
  • 模型接口
    • 调用基础
      • 常见问题及解决办法
      • 批量请求示例
    • Openai
      • 文本生成
      • 文本生成---上下文阅读
      • 图片理解
      • 图片生成(gpt-image-1/sora_image/flux-kontext-pro)
      • 图片编辑/edits
      • 图片编辑 / 网页版
      • 函数调用 tools
      • v1/Responses / 通用
      • 创建文本嵌入
      • 批量创建嵌入
      • 文本转语音 / TTS
      • 语音转文本 / whisper-1
      • 语音转文本 / gpt-4o-transcribe
      • 音频翻译
      • Audio接口 / 输出
      • Audio接口 / 输入
      • 内容补全接口
      • 创建内容审核
      • PDF文件分析
      • deep-research / 深度研究
      • Web search / 联网搜索
      • response_format
    • Anthropic Claude
      • 原生接口
        • 文本生成
        • 图片理解
        • 文本生成 / 强制返回思考
        • 函数调用
        • Web search / 联网搜索
        • 文本生成 (思考配置)
        • PDF传输
      • OpenAI兼容接口
        • 文本生成
        • 图片理解
        • 文本生成 / 强制返回思考
        • 函数调用
        • Web search / 联网搜索
    • Google Gemini
      • OpenAI兼容接口(推荐)
        • 文本生成
        • 文本生成 / 强制返回思考
        • 图片理解
        • 图片生成
        • 图片修改
        • 图片生成 / Imagen 4
        • 音频理解
        • 视频理解
        • 文本转语音 / TTS
        • 图片编辑(Nano-banana)
        • 图片编辑(Nano-banana) base64格式
      • Google Gemini接口
        • 文本生成
        • 文字转语音
        • 音频转文
        • 视频转文
        • 图片理解
        • 图片编辑(gemini-2.5-flash-image-preview)
        • 图片编辑(gemini-3-pro-image-preview)
    • Midjourney
      • Openai兼容/chat格式
        • MJ视频 (chat格式)
      • 原生接口
        • 文生图(Imagine)
        • 图片融合(Blend)
        • 按钮点击(Action)
        • 窗口执行(Modal)
        • 生成视频(Video)
        • 图生文(Describe)
        • 编辑图片(Edit)
        • 上传(upload)
        • 换脸(FaceSwap)
        • 缩短提示词(Shorten)
        • 查询
        • 获取种子(Seed)接口
        • 批量查询
        • 文生图 / OpenAI兼容
    • 文生图接口
      • flux / OpenAI兼容接口
      • flux-kontext-pro / OpenAI兼容接口
      • stable-diffusion / OpenAI兼容接口
      • ideogram / OpenAI兼容接口
      • recraftv3 / OpenAI兼容接口
      • flux携带参考图 / OpenAI兼容接口
    • Suno
      • 场景一:stems声曲分离 Vocals Instrumental
      • 生成歌曲
      • 生成歌词
      • 查询任务状态(批量)
      • 查询任务状态(单个)
    • 3D模型
      • Hunyuan3D-2
    • veo
      • 图生视频(chat格式)
      • 创建视频 /v1/videos
      • 查询视频详情
      • 图生视频
      • 文生视频
      • 查询视频生成状态
    • FLUX
      • /fal-ai/nano-banana 文生图
      • /fal-ai/nano-banana/edit 图片编辑
    • 豆包
      • 图生图
      • doubao-seedream-4-0-250828-文生图
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-多图生图
    • sora
      • 异步格式
        • 创建视频 /v1/videos
        • 创建视频 /v1/videos
        • 查询视频详情
        • 转存视频
        • 创建视频(带 Character)
        • 编辑视频(remix)
      • chat格式
        • 创建绘画
          POST
      • 创建角色接口
        • 创建角色
    • FLUX
      • Flux(Dalle3 Edits(图生图&文生图))
  • 数据模型
    • 示例数据模型
      • Pet
      • Category
      • Tag
首页
Polo首页
首页
Polo首页
  1. chat格式

创建绘画

正式环境
https://poloai.top
正式环境
https://poloai.top
POST
https://poloai.top
/v1/chat/completions
最后修改时间:2025-12-18 10:02:50
这个接口只符合娱乐使用不具备生产效率 请注意
本接口适用于小程序聊天接入chat格式兼容,响应时间约 15分钟,建议开启 stream流式输出。
可用模型
sora2-landscape:横屏(电脑)10秒
sora2-portrait:竖屏(手机)10秒
sora2-landscape-15s:横屏(电脑)15秒
sora2-portrait-15s:竖屏(手机)15秒
pro随后接入
sora2-pro-landscape-hd-10s:pro模型 高清 横屏 10s
审查流程
1.
真人或拟真人内容审查:不得包含真人或拟真人图像。
2.
提示词合规性检查:禁止暴力、色情、版权侵权或涉及名人信息。
3.
生成结果审查:生成结果若不合规(如暴力、极端图像),即使已生成90%以上,也可能无法通过审查。
注意:确保符合审查要求,避免延迟或失败。

请求参数

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 --request POST 'https://poloai.top/v1/chat/completions' \
--header 'X-Forwarded-Host: localhost:5173' \
--header 'Accept: application/json' \
--header 'Authorization: sk-' \
--header 'Content-Type: application/json' \
--data-raw '{
  "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
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "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
    }
}
修改于 2025-12-18 10:02:50
上一页
编辑视频(remix)
下一页
创建角色
Built with