# README
create
AI Images
Create an AI image. Each image costs 5 frames.
API Endpoint: POST /v1/ai-image-generator
Example Snippet
import (
sdk "github.com/magichourhq/magic-hour-go/client"
os "os"
ai_image_generator "github.com/magichourhq/magic-hour-go/resources/v1/ai_image_generator"
types "github.com/magichourhq/magic-hour-go/types"
)
client := sdk.NewClient(sdk.WithBearerAuth(os.Getenv("API_TOKEN")))
res, err := client.V1.AiImageGenerator.Create(ai_image_generator.CreateRequest { ImageCount: 1, Orientation: types.PostV1AiImageGeneratorBodyOrientationEnumLandscape, Style: types.PostV1AiImageGeneratorBodyStyle { Prompt: "Cool image" } })