Text-to-Image
Technical documentation for dryAPI APIs, integration guides, and operational references.
Endpoint for requesting text2img inference
Text-to-Image generates images from text prompts. The endpoint returns a ready-to-use image URL and a task ID to track processing status. Ideal for apps needing automated image creation.
NOTE
Prerequisite: To ensure a successful request, you must first consult the Model Selection endpoint to identify a valid model
slug, check specific limits and features, and verify LoRA availability. Please omit the LoRA parameter by default during initial testing.
OpenAPI
Request Txt2 Image
Authorization
bearerAuth In: header
Header Parameters
"application/json""application/json"Request Body
application/json
Image generation parameters
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.dryapi.dev/api/v1/client/txt2img" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A beautiful sunset over mountains", "model": "Flux1schnell", "width": 512, "height": 512, "guidance": 7.5, "steps": 20, "seed": 42 }'{
"data": {
"request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"message": "The selected model does not support Text To Image.",
"errors": {
"model": [
"The selected model does not support Text To Image."
]
}
}{
"message": "Too Many Attempts."
}