GPT-6.1 Sol
Usemodel: "gpt-6.1-sol" to select this model. It supports streaming output, function calling, structured output, and image input. During the first week of availability, it is only available to verified ACE T1+ holders (at least 100,000 ACE) or authorized users; the specific availability time is subject to the console access prompt.
Reasoning levels support low, medium, high, xhigh, and max, while none or minimal are not currently supported. It is recommended to start with reasoning_effort: "low". When the input exceeds 272,000 tokens, long-context pricing applies to the entire request, and fees are subject to the current console pricing.
Application Process
To use the OpenAI Chat Completion API, first go to the Ace Data Cloud Console to obtain your API Token and keep it as a backup.
If you have not yet logged in or registered, you will be automatically redirected to the login page and invited to register and log in. After completion, you will automatically return to the current page.
One API Token can call all platform services; there is no need to apply separately for each service. The first application will include free credits for a free trial; when credits are insufficient, you can recharge your general balance in the console.
📘 Full documentation: OpenAI Chat Completion API →
Basic Usage
Next, you can fill in the corresponding content in the interface, as shown in the image:
authorization, which can be selected directly from the dropdown list. Another parameter is model; model is the model category from the official OpenAI ChatGPT website that we choose to use. Here, we mainly have 20 models, and details can be viewed in the models we provide. The last parameter is messages; messages is the array of prompt words we enter. It is an array, indicating that multiple prompt words can be uploaded at the same time. Each prompt word includes role and content, where role represents the role of the questioner. We provide three identities: user, assistant, and system. The other one, content, is the specific content of our question.
At the same time, you can notice that there is corresponding generated calling code on the right. You can copy the code and run it directly, or directly click the “Try” button for testing.
Common optional parameters:
max_tokens: Limits the maximum number of tokens in a single response.temperature: Generation randomness, between 0 and 2. The larger the value, the more divergent it is.n: How many candidate responses are generated at once.response_format: Return format settings.

id, the ID generated for this conversation task, used to uniquely identify this conversation task.model, the selected model from the official OpenAI ChatGPT website.choices, the response information provided by ChatGPT for the prompt words.usage: statistical information about tokens for this question-and-answer session.
choices contains ChatGPT’s response information. The choices inside it is ChatGPT, as can be seen in the image.

content field inside choices contains the specific content of the ChatGPT response.
Streaming Response
This API also supports streaming responses, which is very useful for web integration and can enable a webpage to achieve a word-by-word display effect. If you want to return a response through streaming, you can change thestream parameter in the request header to true.
The modification is shown in the image, but the calling code needs corresponding changes to support streaming responses.

stream to true, the API will return the corresponding JSON data line by line. At the code level, we need to make corresponding changes to obtain the line-by-line results.
Python sample calling code:
data entries in the response. The choices within data are the latest response content, which is consistent with the content introduced above. choices contains the newly added response content, and you can integrate it into your system based on the results. Meanwhile, the end of the streaming response is determined based on the content of data. If the content is [DONE], it indicates that the streaming response has completely ended. The returned data result contains multiple fields, introduced as follows:
id, the ID generated for this conversation task, used to uniquely identify this conversation task.model, the selected model from the official OpenAI ChatGPT website.choices, the response information provided by ChatGPT for the prompt.
Multi-turn Conversations
If you want to integrate multi-turn conversation functionality, you need to upload multiple prompts in themessages field. A specific example of multiple prompts is shown in the figure below:

choices is consistent with the basic usage content. This contains the specific content of ChatGPT’s responses to multiple conversations, so corresponding questions can be answered based on multiple conversation contents.
Integrating with OpenAI-Python
The OpenAI Chat Completion API is compatible with the official OpenAI interface and can be directly integrated using the official SDK OpenAI-Python. This article will briefly introduce how to use it.- First, you need to set up a local
Pythonenvironment. You can search Google for this process. - Download and install a development environment, such as the VSCode editor.
- Configure the
OpenAIenvironment variables.
- In the project folder, create and save a file named
.env .envfile content:
sk-xxx with your own key. OPENAI_BASE_URL is the proxy interface for accessing OpenAI.
- Install the packages required by the project
- Create a sample source code file
index.py, with the specific content as follows:
Browsing Models
The gpt-3.5-browsing and gpt-4-browsing models are different from other models. They can perform web searches based on prompts and return appropriately adjusted web search results to you. This article will demonstrate the browsing feature through a specific example. Next, you can fill in the corresponding content on the OpenAI Chat Completion API page, as shown in the image:

choices is obtained through web queries, and relevant links are also provided. The response information in choices needs to be rendered using markdown syntax to obtain the best experience. Finally, this also demonstrates the powerful advantage of our model’s web browsing capability.
Vision Models
gpt-4o is a multimodal large language model developed by OpenAI. It adds visual understanding capabilities on the basis of GPT-4. This model can process both text and image inputs simultaneously, enabling cross-modal understanding and generation. The text processing of the gpt-4o model is consistent with the basic usage content above. The following will briefly introduce how to use the model’s image processing capabilities. The image processing capability of the gpt-4o model is mainly used by adding atype field to the original content content. Through this field, it can determine whether text or an image is uploaded, thereby using the image processing capability of the gpt-4o model. The following mainly describes how to call this feature using Curl and Python.
- Curl script method
- Python script method
GPT-4o Image Generation Model
Generating Images Based on Reference Images
Below is an example of generating an image in a custom style based on an image. First, let us look at the image we input, as shown below:
It can be seen that the reference image is an image of a real person. We can make it change into a different style, for example, turning it into an anime-style image. The specific request example is:
message.content in choices is the complete generated conversation result, with the image included in Markdown format (the image link is a temporary address, please download and save it promptly). It can be seen that the generated image is indeed in an anime style, as specifically shown in the image below:

Text-to-Image Generation Only
We can use a prompt to make it generate an image and return it to us in a conversational result. Below, we use创建一张未来城市日落的图片 as an example. The specific example is as follows:

Generating One Image from Multiple Images
We can also use multiple reference images to generate one image. For example, using an image of a handsome man and an image of coffee, these two images can be used to generate an image of a handsome man drinking coffee. Below are the specific reference images:

生成男生举着咖啡,并且马上要喝的样子 as an example. The specific example is as follows:

Error Handling
When calling the API, if an error occurs, the API will return the corresponding error code and information. For example:400 token_mismatched: Bad request, possibly due to missing or invalid parameters.400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.401 invalid_token: Unauthorized, invalid or missing authorization token.429 too_many_requests: Too many requests, you have exceeded the rate limit.500 api_error: Internal server error, something went wrong on the server.

