Generate images

POST /v1/images/generations
application/json

Body Required

  • model string Required
  • prompt string Required
  • n integer

    Minimum value is 1, maximum value is 10. Default value is 1.

  • size string

    Format should match the following pattern: ^\d+x\d+$. Default value is 1024x1024.

  • quality string

    Values are standard, hd, ultra_hd, or clarity. Default value is standard.

  • Values are url or b64_json. Default value is url.

  • style string

    Values are vivid or natural. Default value is vivid.

  • user string

Responses

POST /v1/images/generations
curl \
 -X POST https://api.rimunace.xyz/v1/images/generations \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"model":"string","prompt":"string","n":1,"size":"1024x1024","quality":"standard","response_format":"url","style":"vivid","user":"string"}'
Request examples
{
  "model": "string",
  "prompt": "string",
  "n": 1,
  "size": "1024x1024",
  "quality": "standard",
  "response_format": "url",
  "style": "vivid",
  "user": "string"
}
Response examples (200)
{
  "created": 42.0,
  "data": [
    {
      "url": "https://example.com",
      "b64_json": "string"
    }
  ],
  "remaining_credits": 42.0
}