Generate Image With AI
Generate Image With AI
{
"seed": 42,
"width": 512,
"height": 768,
"prompt": "a red apple on a white table, photorealistic, 4k",
"negative_prompt": "blurry, low quality, distorted"
}
{
"job_id": "6b1d93ee-7988-49ed-8794-6e72a7b24123-e2",
"status": "processing"
}
Send your requests to the following URL using the specified HTTP method.
POST https://eranol.com/api/v1/imageInclude the following headers with every request. Your API key is required for authentication.
Send the following JSON payload in the request body. Adjust the values to match your use case.
{
"seed": 42,
"width": 512,
"height": 768,
"prompt": "a red apple on a white table, photorealistic, 4k",
"negative_prompt": "blurry, low quality, distorted"
}Use the following cURL command to make a request to this API endpoint. Replace YOUR_API_KEY with your actual API key from the dashboard.
curl -X POST "https://eranol.com/api/v1/image" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"seed":42,"width":512,"height":768,"prompt":"a red apple on a white table, photorealistic, 4k","negative_prompt":"blurry, low quality, distorted"}'Below is an example of a successful JSON response from this endpoint.
{
"job_id": "6b1d93ee-7988-49ed-8794-6e72a7b24123-e2",
"status": "processing"
}A successful request will return one of the following HTTP status codes.