Images
Generating a new image
Create a new image
POST https://api.gandiesai.com/dev/v1/images
This endpoint requests than a new image be generated on your account with the sent parameters.
Request Body
Name
Type
Description
prompt*
string
The text the image will be generated from
owner_id
string
The id of the user who owns the pet
species
string
The species of the pet
breed
string
The breed of the pet
{
"id": 70, // This is the imageId
"developer_id": 1, // This is your developer ID used internally by GandiesAI
"external_user": null, // Optional string for storing a user id generated by you
"prompt": "Cats in outer space",
"status": "queued", // queued, processing, failed, completed
"max_iterations": 250,
"file_name": "67245873-c014-4de5-aeb3-cb3af49cc7eb", // File UUID
"file_location": null,
"created_at": "2021-12-31T20:41:47.579Z",
"updated_at": null,
"deleted_at": null
}{
// Response
}Getting the status of an image
Required scopes
This endpoint requires the following scopes:
- : read your pets
- : modify pets in your account
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
idinteger · int64Optional
namestringRequiredExample:
doggiephotoUrlsstring[]Required
statusstring · enumOptionalPossible values:
pet status in the store
Responses
400
Invalid ID supplied
404
Pet not found
405
Validation exception
put
/petNo content
Last updated