Application Process
To use the OpenAI Embeddings API, first go to the Ace Data Cloud Console to obtain your API Token for future use.
If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in, and after completion, you will be automatically returned to the current page.
One API Token can call all services on the platform, no need to apply separately for each service. The first application will grant a free quota for a free experience; when the quota is insufficient, you can recharge the general balance in the console.
📘 Complete documentation: OpenAI Embeddings API →
Basic Usage
Next, you can fill in the corresponding content on the interface, as shown in the figure:
authorization, which can be selected directly from the dropdown list. The other parameter is model, which is the model category we choose to use from the OpenAI official website; here we mainly have 3 types of models, details can be found in the models we provide. The last parameter is input, which is the text we need to convert into a word vector.
You may also notice that there is corresponding code generation on the right side; you can copy the code to run directly or click the “Try” button for testing.
Optional parameters:
dimensions: Crop vector dimensions, default output is the full dimension.encoding_format: Return format, optionalfloatorbase64.

model, the model used for this text-to-word vector conversion.usage, the token information used for this text-to-word vector conversion.data, the word vector result after text conversion.
data contains the specific information of the word vector corresponding to the text, and the embedding inside it is the specific result of the generated word vector.
Error Handling
When calling the API, if an error occurs, the API will return the corresponding error code and message. 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.

