Call different llm models, sending text prompt and optionally image data
POST/v1/textcraft
Call different llm models, sending text prompt and optionally image data
Request
- application/json
Body
required
prompt stringrequired
model stringrequired
temperature number
maxTokens number
imageUrl string
imageData string
Responses
- 201
- 400
- 401
- 403
- 429
- 500
- 504
Response of the llm and cost of generation
- application/json
- Schema
- Example (from schema)
Schema
text stringrequired
tokens number
creditsUsed numberrequired
{
"text": "string",
"tokens": 0,
"creditsUsed": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Gateway Timeout
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Loading...