cURL
curl --request POST \ --url https://api.bytez.com/models/v2/dreamlike-art/dreamlike-photoreal-2.0 \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "text": "A beautiful landscape with mountains and a river" } '
{ "error": "<string>", "output": "https://api.bytez.com/image/1234567890" }
Generate images using text
Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'
Authorization
BYTEZ_KEY
'Authorization: YOUR_BYTEZ_KEY_HERE'
Schema for text-to-image models
The input text
"A beautiful landscape with mountains and a river"
Successful text-to-image response.
Null on success; otherwise an error message.
Successful response with the generated image link
"https://api.bytez.com/image/1234567890"