Body Required
-
n integer
Minimum value is
1
, maximum value is10
. Default value is1
. -
size string
Format should match the following pattern:
^\d+x\d+$
. Default value is1024x1024
. -
quality string
Values are
standard
,hd
,ultra_hd
, orclarity
. Default value isstandard
. -
response_format string
Values are
url
orb64_json
. Default value isurl
. -
style string
Values are
vivid
ornatural
. Default value isvivid
. -
user string
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
}