GPT-4o
收藏GPT-4o 数据集概述
基本信息
- 名称: GPT-4o
- 类别: Artificial Intelligence/Machine Learning
- API版本: v1 (current)
- API提供者: Swift API
- 订阅者数量: 79
- API评分: 9.7 Popularity
- 服务等级: 99% Service Level
- 延迟: 2700ms
- 测试通过率: 87%
订阅计划
- BASIC: $1.00 / mo
- PRO: $5.00 / mo
- ULTRA: $25.00 / mo
- MEGA: $75.00 / mo
功能概述
- 多模态模型: 接受文本或图像输入,输出文本。
- 高效性: 文本生成速度是GPT-4 Turbo的2倍,成本降低50%。
- 高级功能: 具有最强的视觉能力和非英语语言性能。
- 上下文长度: 128K。
- 知识截止日期: October 2023。
端点
- POST /chat/completions: 用于聊天补全。
使用示例
简单使用
bash curl https://gpt-4o.p.rapidapi.com/chat/completions -H "Content-Type: application/json" -H "x-rapidapi-key: YOUR_API_KEY" -H "x-rapidapi-host: gpt-4o.p.rapidapi.com" -d { "model": "gpt-4o", "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Hello, how are you?" } ] }
结构化输出 (JSON模式)
bash curl https://gpt-4o.p.rapidapi.com/chat/completions -H "x-rapidapi-key: YOUR_API_KEY" -H "Content-Type: application/json" -H "x-rapidapi-host: gpt-4o.p.rapidapi.com" -d { "model": "gpt-4o", "messages": [ { "role": "system", "content": "You are a helpful math tutor. Guide the user through the solution step by step." }, { "role": "user", "content": "how can I solve 8x + 7 = -23" } ], "response_format": { "type": "json_schema", "json_schema": { "name": "math_reasoning", "schema": { "type": "object", "properties": { "steps": { "type": "array", "items": { "type": "object", "properties": { "explanation": { "type": "string" }, "output": { "type": "string" } }, "required": ["explanation", "output"], "additionalProperties": false } }, "final_answer": { "type": "string" } }, "required": ["steps", "final_answer"], "additionalProperties": false }, "strict": true } } }
提供者信息
- API创建者: Swift API
- 资源链接: Product Website
- 使用条款: Terms of Use




