OpenAI Generative API
Access GPT-6.2, GPT-5, and the o series for conversational reasoning through Ace Data Cloud, use GPT Image for image generation and editing, and call embedding, voice, and real-time interaction APIs.
Choose an OpenAI API by Task
Conversational reasoning, image generation and editing, text embeddings, and voice and real-time interaction
Chat Completions
Access GPT-6.2, GPT-5, GPT-4o, and the o series. Parameters for streaming output, tool calling, and structured output vary by model.
Responses API
Use the Responses format to orchestrate reasoning and tool calls. See the Responses documentation for supported models and parameters.
Image Generation / Editing
GPT Image supports text-to-image generation and editing based on reference images. GPT Image 2.6 Flare and Sunburst also support animated GIFs and 4K still images. See the API documentation for specific parameters.
Embeddings
Two embedding models, text-embedding-3-small and text-embedding-3-large, for semantic search, clustering, and RAG applications.
Direct Connection with the Native OpenAI SDK
Set base_url to https://api.acedata.cloud/openai and use your platform key and a model supported by the current API.
from openai import OpenAI
client = OpenAI(
base_url="https://api.acedata.cloud/openai",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="gpt-6.2-sol",
messages=[{"role": "user", "content": "用一句话解释什么是向量检索"}],
reasoning_effort="low",
)
print(response.choices[0].message.content)JSON Response
The following response is excerpted from an existing API guide and shows the fields used to read the result. The example model, task ID, and media content come from that historical example; use the actual values returned by your request.
{
"id": "chatcmpl-Cmd6uwSxN75F4PAdQSFEO8f2QPs4E",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! What can I help you with today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 7,
"completion_tokens": 13,
"total_tokens": 20
}
}
Get Started in 3 Steps
From signing up to making your first API call, it only takes a few minutes.
Get an API Key
Sign in to the application list, open General Application, and click the copy button to the right of API KEY. Store the key on your server and use it to replace YOUR_API_KEY in the example.
Choose an API and Model
Choose the Chat, Images, or Embeddings API based on your needs, along with your desired model.
Make a Request
Use the OpenAI SDK or an HTTP request and change base_url to make a call.
What is the OpenAI API suitable for?
Supports a wide range of AI applications, including text, images, and vectorization.
Coding Assistant
GPT-6.2, GPT-5, and the o series can be used for code generation, review, and debugging. Choose the model and reasoning budget based on the task.
AI Customer Service / Chatbots
Build intelligent customer service systems with GPT-4o-mini, which provides low-cost, efficient conversational capabilities.
AI Image Generation
DALL·E 3 and GPT Image generate high-quality images suitable for design and marketing materials.
Semantic Search / RAG
The Embeddings API converts text into vectors to build semantic search engines and knowledge base question-answering systems.
Data Analysis
Provide data for GPT to analyze trends, generate reports, and suggest visualizations.
Complex Reasoning
Reasoning models such as o3 and o3-pro excel at mathematical proofs, logical analysis, and multistep problem-solving.
API Endpoints
After selecting an API, check the supported models, input types, and parameters.
💬 Chat Completions
Conversational text generation with support for streaming, tool calls, and more.
/openai/chat/completions🧠 Responses
Submit input and tool definitions using the Responses protocol.
/openai/responses🎨 Images Generations
Turn image descriptions into images using released models such as GPT Image.
/openai/images/generations✏️ Images Edits
Edit images using images and text prompts.
/openai/images/edits📐 Embeddings
Convert text into vectors for search, clustering, and RAG.
/openai/embeddings🎙️ Speech and Real-Time Interaction
Speech synthesis, speech transcription, and Live real-time sessions use their respective protocols.
/v1/audio/speech /v1/audio/transcriptions /v1/live/sessionsModel Matrix
Choose the best model for your task
🚀 GPT-5 Series
For general-purpose generation, analysis, and programming tasks. Choose a tier that fits your budget.
✨ GPT-5.x / GPT-6 Series
GPT-6.2 Astra and Sol support text and image input and adjustable reasoning effort. You can also choose from released models in the GPT-6.1, GPT-6, and GPT-5.x series.
⚡ GPT-4o Series
Efficient multimodal models that support combined text and image input.
📐 GPT-4.1 Series
Optimized for programming and long contexts, with strong instruction-following capabilities.
🧠 o-Series Reasoning
Designed for complex reasoning, delivering high-quality answers after deep thought.
🎨 Image Models
Text-to-image generation and image editing. GPT Image 2.6 can output GIFs and 4K still images; see the image generation documentation for details.
OpenAI API Pricing
Chat and embeddings are billed by token usage. Standard images are billed per image, while image models marked :official are billed based on actual token usage. See the pricing page for full rates.
Get greater discounts with bulk packages
Rates depend on the API, model, and request specifications. The actual cost per Credit depends on the package purchased.
- ✓ Text input, output, and applicable cached usage are billed separately
- ✓ Images are billed based on the selected model and specifications
- ✓ Embeddings are billed by input token usage
Tailored plans for high-volume teams
- ✓ Tiered discounts based on usage
- ✓ Priority support and an account manager
- ✓ Custom rate limits
- ✓ SLA guarantees
- ✓ Private deployment options
Frequently Asked Questions
Common questions about using the OpenAI API
How is this different from using the official OpenAI API directly?›
Use an Ace Data Cloud key to access the public Chat Completions, Responses, Images, Embeddings, and audio APIs. See the documentation and pricing page for the models, parameters, and pricing of each API.
How do I choose a conversational model?›
For complex coding, analysis, and tool tasks, try GPT-6.2 Astra or Sol first. For everyday conversation, classification, and extraction, compare lighter models such as GPT-5 mini and GPT-4o mini. Parameters and rates depend on the selected API.
What are o-series reasoning models suited for?›
Reasoning models such as o3, o3-pro, and o4-mini perform deep thinking before answering, making them particularly suitable for tasks requiring deep reasoning, such as mathematical calculations, logical reasoning, and code analysis. o3-mini and o4-mini offer reasoning capabilities at a lower cost.
What is the difference between GPT Image and DALL·E 3?›
GPT Image 2.5 and 2.6 can both generate and edit images. Flare focuses on speed, while Sunburst focuses on high fidelity and detail. GPT Image 2.6 also offers GIFs and 4K still images. DALL·E 3 can be used for text-to-image generation; see the respective API parameters for size and quality options.
Which model should I use for Embeddings?›
text-embedding-3-small produces 1536-dimensional vectors by default, while text-embedding-3-large produces 3072-dimensional vectors. See the pricing page for rates per million input tokens. The older ada-002 is no longer available; vectors must be regenerated when upgrading existing indexes.
Explore More AI Models
Ace Data Cloud offers a variety of large language models and AI service APIs
Start Using the OpenAI API Now
Get started with chat, image, embedding, or speech APIs.