OpenAI-compatible image generation and edit

Generate an image from a prompt, or transform a reference image (image-to-image) by passing image. Set type=logo to steer as a brand mark. On-brand automatically when personalization is on.

post/api/v1/images/generations

Request

  • Base URL: https://genmagic.co
  • URL: https://genmagic.co/api/v1/images/generations
  • Auth: HTTP bearer

Request body

promptstring required

Description of the image (or the edit to make when image is given).

modelstring

Model id. Omit for the recommended default.

size'1024x1024' | '1792x1024' | '1024x1792'

Output size.

imagestring

Reference image to transform: an https URL or a data:image URL.

type'image' | 'logo'

logo steers a brand mark; image is a picture.

response_format'url' | 'b64_json'

Return a hosted url (default) or base64.

ninteger

Number of images (1-4).

Response

Success.

Changes

No recorded changes to this operation across all 1 revision of this API.