- (必读)网站使用教程
- (必读)前言
- 批量请求示例
- 常见问题及解决办法
- 聊天模型
- 音乐生成
- 绘画模型
- Midjourney
- Dalle和Gpt-image-1和Sora_image
- Flux
- Grok
- Stable-diffusion
- 即梦AI
- 可灵AI
- 音频模型
- 视频生成
- 查询令牌用量GET
- 查询令牌限额GET
o3-pro请求格式
POST
https://api.apicore.ai/v1/responses
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
model
string
必需
input
array [object {2}]
必需
role
string
必需
content
string
必需
示例
{
"model": "o3-pro",
"input": [
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn."
}
]
}
示例代码
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://api.apicore.ai/v1/responses' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "o3-pro",
"input": [
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn."
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"id": "resp_68499d016368819d8763a5f25d5cd5780526f9f559fc7fa8",
"object": "response",
"created_at": 1749654785,
"status": "completed",
"background": false,
"error": null,
"incomplete_details": null,
"instructions": null,
"max_output_tokens": null,
"model": "o3-pro-2025-06-10",
"output": [
{
"id": "rs_68499d1b3550819da50ba7d061c941be0526f9f559fc7fa8",
"type": "reasoning",
"summary": []
},
{
"id": "msg_68499d1b36c4819db5c3118f2a1235d70526f9f559fc7fa8",
"type": "message",
"status": "in_progress",
"content": [
{
"type": "output_text",
"annotations": [],
"text": "Beneath a quilt of twinkling stars, a gentle unicorn tiptoed through a dream-lit forest, sprinkling sleepy stardust over every creature until the whole world softly sighed goodnight."
}
],
"role": "assistant"
}
],
"parallel_tool_calls": true,
"previous_response_id": null,
"reasoning": {
"effort": "medium",
"summary": null
},
"service_tier": "default",
"store": true,
"temperature": 1,
"text": {
"format": {
"type": "text"
}
},
"tool_choice": "auto",
"tools": [],
"top_p": 1,
"truncation": "disabled",
"usage": {
"input_tokens": 17,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 176,
"output_tokens_details": {
"reasoning_tokens": 128
},
"total_tokens": 193
},
"user": null,
"metadata": {}
}