Image Projects

AI GIF Generator

Changed on

Create an AI GIF. Each GIF costs 50 credits.

post/v1/ai-gif-generator

Request

  • Base URL
    https://api.magichour.ai
  • URL
    https://api.magichour.ai/v1/ai-gif-generator
  • Auth
    HTTP bearer

Request body

namestring

Give your gif a custom name for easy identification.

output_format'gif' | 'mp4' | 'webm'

The output file format for the generated animation.

Example request

{
  "name": "My Ai Gif gif",
  "style": {
    "prompt": "Cute dancing cat, pixel art"
  },
  "output_format": "gif"
}

Response

Success

idstring required

Unique ID of the image. Use it with the Get image Project API to fetch status and downloads.

credits_chargedinteger required

The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.

If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.

Example response

{
  "id": "cuid-example",
  "credits_charged": 50
}

Changes

    • info

      added the non-success response with the status

    • info

      removed the Not Found enum value from the response property for the response status

    • info

      removed the Unauthorized enum value from the response property for the response status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the non-success response with the status