Convert Image to Text
POST/image-2-text-v1
Process an image and generate descriptive text based on its content.
Request
- application/json
Body
required
image_url Image URL (string)required
URL of the image to be processed
prompt_type Prompt Type (string)required
Possible values: [Other, Product, Scene]
Type of analysis to perform
custom_prompt Custom Prompt (string)
Custom instructions for text generation
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
text Text (string)required
Generated text description of the image
{
"text": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}