Eranol LogoEranol
BlogCommunityDocumentationPricingSign In

General

OverviewGet Started

Universal

Add IntroAdd OutroAudio to VideoBackground AudioCaptions ApiComposeConcatConvert a video file to MP4Convert Audio to Mp3Convert Audio to wavConvert to JPGConvert to WebMConvert to WebPDenoiseExtract audio track from a videoExtract images from a videoGenerate a GIF from a videoHighlightsImageMergeNotifyOverlayProgress BarReframeRemove SilenceThumbnailTikTokTrimVerifyWatermarkZoom

General

DeleteImage StatusStatusTikTok StatusFFmpeg Results

Need help?

Contact Support

Image

POST

Generate Image With AI

Guide

Overview

Generate Image With AI

Example Request Bodies

Default

{
  "seed": 42,
  "width": 512,
  "height": 768,
  "prompt": "a red apple on a white table, photorealistic, 4k",
  "negative_prompt": "blurry, low quality, distorted"
}

Example Response

{
  "job_id": "6b1d93ee-7988-49ed-8794-6e72a7b24123-e2",
  "status": "processing"
}

Endpoint

Send your requests to the following URL using the specified HTTP method.

POST https://eranol.com/api/v1/image

Headers

Include the following headers with every request. Your API key is required for authentication.

Content-Type:application/json
x-api-key:YOUR_API_KEY

Request Body

Send the following JSON payload in the request body. Adjust the values to match your use case.

json
{
  "seed": 42,
  "width": 512,
  "height": 768,
  "prompt": "a red apple on a white table, photorealistic, 4k",
  "negative_prompt": "blurry, low quality, distorted"
}

Example Request

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.

bash
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"}'

Example Response

Below is an example of a successful JSON response from this endpoint.

json
{
  "job_id": "6b1d93ee-7988-49ed-8794-6e72a7b24123-e2",
  "status": "processing"
}

Response Status

A successful request will return one of the following HTTP status codes.

200 OKRequest was successful and data is returned in the response body.
201 CreatedResource was successfully created.
401 UnauthorizedMissing or invalid API key.
429 Too Many RequestsRate limit exceeded. Try again later.