gpt-4o-2024-08-06
Image to Text
POST
Authorization
- Auth Type:
Bearer Auth(In:header) - Format:
Authorization: Bearer <YOUR_API_KEY> - Description: Use
Bearer <YOUR_API_KEY>. Format:Authorization: Bearer sk-xxxxxx. - API Key: where API Key is your AGCloud API KEY
Parameters
Core Parameters
| Field | Type | Required | Range | Description |
|---|---|---|---|---|
model | string | ✅ | - | Model ID used to generate the response. |
messages | array<object> | ✅ | - | A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text, images, and audio. |
>messages.role | enum | ✅ | user assistant system developer | The role of the message sender. Can be user model. |
>messages.name | string | - | - | An optional name for the participant. Provides the model information to differentiate between participants of the same role. |
>messages.content | string|array<object> | ✅ | - | The contents of the developer message. |
>messages.content.type | string | - | text image_url | The type of the content part. |
>messages.content.text | string | - | - | The text content. |
>messages.content.image_url | object | - | - | The image URL content. |
>messages.content.image_url.url | string | - | - | The URL of the image. |
max_tokens | integer | - | - | An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. |
stream | boolean | - | - | Whether to stream the response back incrementally. Defaults to false. |