Skip to main content
POST
MOSS-Image

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be moss-image.

Available options:
moss-image
prompt
string
required

What to generate. Required. Text you put in quotes is rendered in the image as written, in English or Chinese.

Maximum string length: 4000
ratio
enum<string>
default:auto

Aspect ratio. auto means 1:1.

Available options:
auto,
1:1,
2:3,
3:2,
3:4,
4:3,
9:16,
16:9,
21:9
image_size
enum<string>
default:1K

Resolution tier, also the price tier. 1K is about 1 megapixel, 2K about 4 megapixels. Case-insensitive.

Available options:
1K,
2K
seed
integer

Optional. Fixing the seed makes results more reproducible.

Required range: 0 <= x <= 2147483647
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required