{"modulePath":"github.com/NeuralNetLab/ideogram-sdk-go","version":"v0.1.0-alpha.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ideogramsdk\n\n## Functions\n\n```go\nfunc Bool(b bool) param.Opt[bool]\n```\n\n```go\nfunc BoolPtr(v bool) *bool\n```\n\n```go\nfunc DefaultClientOptions() []option.RequestOption\n```\nDefaultClientOptions read from the environment (IDEOGRAM\\_SDK\\_API\\_KEY, IDEOGRAM\\_SDK\\_BEARER\\_TOKEN, IDEOGRAM\\_SDK\\_BASE\\_URL). This should be used to initialize new clients.\n\n```go\nfunc File(rdr io.Reader, filename string, contentType string) file\n```\n\n```go\nfunc Float(f float64) param.Opt[float64]\n```\n\n```go\nfunc FloatPtr(v float64) *float64\n```\n\n```go\nfunc Int(i int64) param.Opt[int64]\n```\n\n```go\nfunc IntPtr(v int64) *int64\n```\n\n```go\nfunc Opt[T comparable](v T) param.Opt[T]\n```\n\n```go\nfunc Ptr[T any](v T) *T\n```\n\n```go\nfunc String(s string) param.Opt[string]\n```\n\n```go\nfunc StringPtr(v string) *string\n```\n\n```go\nfunc Time(t time.Time) param.Opt[time.Time]\n```\n\n```go\nfunc TimePtr(v time.Time) *time.Time\n```\n\n## Types\n\n```go\ntype AspectRatio string\n```\nThe aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.\n\n```go\nconst (\n\tAspectRatio1x3   AspectRatio = \"1x3\"\n\tAspectRatio3x1   AspectRatio = \"3x1\"\n\tAspectRatio1x2   AspectRatio = \"1x2\"\n\tAspectRatio2x1   AspectRatio = \"2x1\"\n\tAspectRatio9x16  AspectRatio = \"9x16\"\n\tAspectRatio16x9  AspectRatio = \"16x9\"\n\tAspectRatio10x16 AspectRatio = \"10x16\"\n\tAspectRatio16x10 AspectRatio = \"16x10\"\n\tAspectRatio2x3   AspectRatio = \"2x3\"\n\tAspectRatio3x2   AspectRatio = \"3x2\"\n\tAspectRatio3x4   AspectRatio = \"3x4\"\n\tAspectRatio4x3   AspectRatio = \"4x3\"\n\tAspectRatio4x5   AspectRatio = \"4x5\"\n\tAspectRatio5x4   AspectRatio = \"5x4\"\n\tAspectRatio1x1   AspectRatio = \"1x1\"\n)\n```\n\n```go\ntype Client struct {\n\tOptions         []option.RequestOption\n\tDescribe        DescribeService\n\tEdit            EditService\n\tGenerate        GenerateService\n\tInternalTesting InternalTestingService\n\tManage          ManageService\n\tReframe         ReframeService\n\tRemix           RemixService\n\tUpscale         UpscaleService\n\tIdeogramV3      IdeogramV3Service\n}\n```\nClient creates a struct with services and top level methods that help with interacting with the ideogram-sdk API. You should not instantiate this client directly, and instead use the [NewClient](#NewClient) method instead.\n\n```go\nfunc NewClient(opts ...option.RequestOption) (r Client)\n```\nNewClient generates a new client with the default option read from the environment (IDEOGRAM\\_SDK\\_API\\_KEY, IDEOGRAM\\_SDK\\_BEARER\\_TOKEN, IDEOGRAM\\_SDK\\_BASE\\_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.\n\n```go\nfunc (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nDelete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error\n```\nExecute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.\n\nIf a byte slice or an [io.Reader](/io#Reader) is supplied to params, it will be used as-is for the request body.\n\nThe params is by default serialized into the body using [encoding/json](/encoding/json). If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values](/net/url#Values) will be used as query strings to the url.\n\nIf your params struct uses [param.Field](/github.com/NeuralNetLab/ideogram-sdk-go/packages/param#Field), you must provide either \\[MarshalJSON], \\[URLQuery], and/or \\[MarshalForm] functions. It is undefined behavior to use a struct uses [param.Field](/github.com/NeuralNetLab/ideogram-sdk-go/packages/param#Field) without specifying how it is serialized.\n\nAny \"…Params\" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.\n\nThe response body will be deserialized into the res variable, depending on its type:\n\n  - A pointer to a [\\*http.Response](/net/http#Response) is populated by the raw response.\n  - A pointer to a byte array will be populated with the contents of the request body.\n  - A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.\n  - A nil value will not read the response body.\n\nFor even greater flexibility, see [option.WithResponseInto](/github.com/NeuralNetLab/ideogram-sdk-go/option#WithResponseInto) and [option.WithResponseBodyInto](/github.com/NeuralNetLab/ideogram-sdk-go/option#WithResponseBodyInto).\n\n```go\nfunc (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nGet makes a GET request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPatch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Post(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPost makes a POST request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Put(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPut makes a PUT request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\ntype ColorPaletteColorPaletteWithMembersMemberParam struct {\n\t// The hexadecimal representation of the color with an optional chosen weight.\n\tColorHex string `json:\"color_hex,required\"`\n\t// The weight of the color in the color palette.\n\tColorWeight param.Opt[float64] `json:\"color_weight,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA member of a color palette.\n\nThe property ColorHex is required.\n\n```go\nfunc (r ColorPaletteColorPaletteWithMembersMemberParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ColorPaletteColorPaletteWithMembersMemberParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ColorPaletteColorPaletteWithMembersParam struct {\n\t// A list of ColorPaletteMembers that define the color palette. Each color palette\n\t// member consists of a required color hex and an optional weight between 0.05 and\n\t// 1.0 (inclusive). It is recommended that these weights descend from highest to\n\t// lowest for the color hexes provided.\n\tMembers []ColorPaletteColorPaletteWithMembersMemberParam `json:\"members,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\nA color palette represented only via its members. Cannot be used in conjunction with preset name.\n\nThe property Members is required.\n\n```go\nfunc (r ColorPaletteColorPaletteWithMembersParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ColorPaletteColorPaletteWithMembersParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ColorPaletteColorPaletteWithPresetNameParam struct {\n\t// A color palette preset value.\n\t//\n\t// Any of \"EMBER\", \"FRESH\", \"JUNGLE\", \"MAGIC\", \"MELON\", \"MOSAIC\", \"PASTEL\",\n\t// \"ULTRAMARINE\".\n\tName string `json:\"name,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r ColorPaletteColorPaletteWithPresetNameParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ColorPaletteColorPaletteWithPresetNameParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ColorPaletteUnionParam struct {\n\tOfColorPaletteWithPresetName *ColorPaletteColorPaletteWithPresetNameParam `json:\",omitzero,inline\"`\n\tOfColorPaletteWithMembers    *ColorPaletteColorPaletteWithMembersParam    `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/NeuralNetLab/ideogram-sdk-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc ColorPaletteParamOfColorPaletteWithMembers(members []ColorPaletteColorPaletteWithMembersMemberParam) ColorPaletteUnionParam\n```\n\n```go\nfunc ColorPaletteParamOfColorPaletteWithPresetName(name string) ColorPaletteUnionParam\n```\n\n```go\nfunc (u ColorPaletteUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ColorPaletteUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DescribeNewParams struct {\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tImageFile io.Reader `json:\"image_file,omitzero,required\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DescribeNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype DescribeNewResponse struct {\n\t// A collection of descriptions for given content.\n\tDescriptions []DescribeNewResponseDescription `json:\"descriptions\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescriptions respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe response for a describe request encapsulates a list of descriptions.\n\n```go\nfunc (r DescribeNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DescribeNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DescribeNewResponseDescription struct {\n\t// The generated description for the provided image.\n\tText string `json:\"text\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tText        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r DescribeNewResponseDescription) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DescribeNewResponseDescription) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DescribeService struct {\n\tOptions []option.RequestOption\n}\n```\nDescribeService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewDescribeService](#NewDescribeService) method instead.\n\n```go\nfunc NewDescribeService(opts ...option.RequestOption) (r DescribeService)\n```\nNewDescribeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *DescribeService) New(ctx context.Context, body DescribeNewParams, opts ...option.RequestOption) (res *DescribeNewResponse, err error)\n```\nDescribe an image.\n\nSupported image formats include JPEG, PNG, and WebP.\n\n```go\ntype EditApplyParams struct {\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tImageFile io.Reader `json:\"image_file,omitzero,required\" format:\"binary\"`\n\t// A black and white image of the same size as the image being edited (max size\n\t// 10MB). Black regions in the mask should match up with the regions of the image\n\t// that you would like to edit; only JPEG, WebP and PNG formats are supported at\n\t// this time.\n\tMask io.Reader `json:\"mask,omitzero,required\" format:\"binary\"`\n\t// The model used to generate an image or edit one. /generate and /remix supports\n\t// all model types, however, /edit is only supported for V_2 and V_2_TURBO.\n\t//\n\t// Any of \"V_1\", \"V_1_TURBO\", \"V_2\", \"V_2_TURBO\", \"V_2A\", \"V_2A_TURBO\", \"V_3\".\n\tModel ModelEnum `json:\"model,omitzero,required\"`\n\t// The prompt used to describe the edited result.\n\tPrompt string `json:\"prompt,required\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPromptOption MagicPromptOption `json:\"magic_prompt_option,omitzero\"`\n\t// The style type to generate with; this is only applicable for models V_2 and\n\t// above and should not be specified for model versions V_1.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\", \"RENDER_3D\", \"ANIME\", \"CUSTOM\".\n\tStyleType StyleTypeV2AndAbove `json:\"style_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EditApplyParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype EditService struct {\n\tOptions []option.RequestOption\n}\n```\nEditService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewEditService](#NewEditService) method instead.\n\n```go\nfunc NewEditService(opts ...option.RequestOption) (r EditService)\n```\nNewEditService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *EditService) Apply(ctx context.Context, body EditApplyParams, opts ...option.RequestOption) (res *GenerateImage, err error)\n```\nEdit a given image synchronously using the provided mask. The mask indicates which part of the image should be edited, while the prompt and chosen style type can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\ntype Error = apierror.Error\n```\n\n```go\ntype GenerateImage struct {\n\t// The time the request was created.\n\tCreated time.Time `json:\"created,required\" format:\"date-time\"`\n\t// A list of ImageObjects that contain the generated image(s).\n\tData []GenerateImageData `json:\"data,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreated     respjson.Field\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe response which contains information about the generated image, including the download link. Images links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r GenerateImage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *GenerateImage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype GenerateImageData struct {\n\t// Whether this request passes safety checks. If false, the url field will be\n\t// empty.\n\tIsImageSafe bool `json:\"is_image_safe,required\"`\n\t// The prompt used for the generation. This may be different from the original\n\t// prompt.\n\tPrompt string `json:\"prompt,required\"`\n\t// The resolution of the final image.\n\tResolution string `json:\"resolution,required\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed int64 `json:\"seed,required\"`\n\t// The style type to generate with; this is only applicable for models V_2 and\n\t// above and should not be specified for model versions V_1.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\", \"RENDER_3D\", \"ANIME\", \"CUSTOM\".\n\tStyleType StyleTypeV2AndAbove `json:\"style_type\"`\n\t// The direct link to the image generated.\n\tURL string `json:\"url,nullable\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIsImageSafe respjson.Field\n\t\tPrompt      respjson.Field\n\t\tResolution  respjson.Field\n\t\tSeed        respjson.Field\n\t\tStyleType   respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r GenerateImageData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *GenerateImageData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype GenerateNewParams struct {\n\tImageRequest ImageRequestParam `json:\"image_request,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r GenerateNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *GenerateNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype GenerateService struct {\n\tOptions []option.RequestOption\n}\n```\nGenerateService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewGenerateService](#NewGenerateService) method instead.\n\n```go\nfunc NewGenerateService(opts ...option.RequestOption) (r GenerateService)\n```\nNewGenerateService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *GenerateService) New(ctx context.Context, body GenerateNewParams, opts ...option.RequestOption) (res *GenerateImage, err error)\n```\nGenerates images synchronously based on a given prompt and optional parameters.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\ntype IdeogramV3EditParams struct {\n\t// The image being edited (max size 10MB); only JPEG, WebP and PNG formats are\n\t// supported at this time.\n\tImage io.Reader `json:\"image,omitzero,required\" format:\"binary\"`\n\t// A black and white image of the same size as the image being edited (max size\n\t// 10MB). Black regions in the mask should match up with the regions of the image\n\t// that you would like to edit; only JPEG, WebP and PNG formats are supported at\n\t// this time.\n\tMask io.Reader `json:\"mask,omitzero,required\" format:\"binary\"`\n\t// The prompt used to describe the edited result.\n\tPrompt string `json:\"prompt,required\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPrompt MagicPromptOption `json:\"magic_prompt,omitzero\"`\n\t// The rendering speed to use.\n\t//\n\t// Any of \"TURBO\", \"BALANCED\", \"DEFAULT\", \"QUALITY\".\n\tRenderingSpeed RenderingSpeed `json:\"rendering_speed,omitzero\"`\n\t// A list of 8 character hexadecimal codes representing the style of the image.\n\t// Cannot be used in conjunction with style_reference_images or style_type.\n\tStyleCodes []string `json:\"style_codes,omitzero\"`\n\t// A set of images to use as style references (maximum total size 10MB across all\n\t// style references). The images should be in JPEG, PNG or WebP format.\n\tStyleReferenceImages []io.Reader `json:\"style_reference_images,omitzero\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdeogramV3EditParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype IdeogramV3GenerateParams struct {\n\t// The prompt to use to generate the image.\n\tPrompt string `json:\"prompt,required\"`\n\t// Description of what to exclude from an image. Descriptions in the prompt take\n\t// precedence to descriptions in the negative prompt.\n\tNegativePrompt param.Opt[string] `json:\"negative_prompt,omitzero\"`\n\t// Number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// The aspect ratio to use for image generation, which determines the image's\n\t// resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.\n\t//\n\t// Any of \"1x3\", \"3x1\", \"1x2\", \"2x1\", \"9x16\", \"16x9\", \"10x16\", \"16x10\", \"2x3\",\n\t// \"3x2\", \"3x4\", \"4x3\", \"4x5\", \"5x4\", \"1x1\".\n\tAspectRatio AspectRatio `json:\"aspect_ratio,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPrompt MagicPromptOption `json:\"magic_prompt,omitzero\"`\n\t// The rendering speed to use.\n\t//\n\t// Any of \"TURBO\", \"BALANCED\", \"DEFAULT\", \"QUALITY\".\n\tRenderingSpeed RenderingSpeed `json:\"rendering_speed,omitzero\"`\n\t// The resolutions supported for Ideogram 3.0.\n\t//\n\t// Any of \"512x1536\", \"576x1408\", \"576x1472\", \"576x1536\", \"640x1344\", \"640x1408\",\n\t// \"640x1472\", \"640x1536\", \"704x1152\", \"704x1216\", \"704x1280\", \"704x1344\",\n\t// \"704x1408\", \"704x1472\", \"736x1312\", \"768x1088\", \"768x1216\", \"768x1280\",\n\t// \"768x1344\", \"800x1280\", \"832x960\", \"832x1024\", \"832x1088\", \"832x1152\",\n\t// \"832x1216\", \"832x1248\", \"864x1152\", \"896x960\", \"896x1024\", \"896x1088\",\n\t// \"896x1120\", \"896x1152\", \"960x832\", \"960x896\", \"960x1024\", \"960x1088\",\n\t// \"1024x832\", \"1024x896\", \"1024x960\", \"1024x1024\", \"1088x768\", \"1088x832\",\n\t// \"1088x896\", \"1088x960\", \"1120x896\", \"1152x704\", \"1152x832\", \"1152x864\",\n\t// \"1152x896\", \"1216x704\", \"1216x768\", \"1216x832\", \"1248x832\", \"1280x704\",\n\t// \"1280x768\", \"1280x800\", \"1312x736\", \"1344x640\", \"1344x704\", \"1344x768\",\n\t// \"1408x576\", \"1408x640\", \"1408x704\", \"1472x576\", \"1472x640\", \"1472x704\",\n\t// \"1536x512\", \"1536x576\", \"1536x640\".\n\tResolution ResolutionIdeogram `json:\"resolution,omitzero\"`\n\t// A list of 8 character hexadecimal codes representing the style of the image.\n\t// Cannot be used in conjunction with style_reference_images or style_type.\n\tStyleCodes []string `json:\"style_codes,omitzero\"`\n\t// A set of images to use as style references (maximum total size 10MB across all\n\t// style references). The images should be in JPEG, PNG or WebP format.\n\tStyleReferenceImages []io.Reader `json:\"style_reference_images,omitzero\" format:\"binary\"`\n\t// The style type to generate with.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\".\n\tStyleType StyleTypeV3 `json:\"style_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdeogramV3GenerateParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype IdeogramV3ReframeParams struct {\n\t// The image being reframed (max size 10MB); only JPEG, WebP and PNG formats are\n\t// supported at this time.\n\tImage io.Reader `json:\"image,omitzero,required\" format:\"binary\"`\n\t// The resolutions supported for Ideogram 3.0.\n\t//\n\t// Any of \"512x1536\", \"576x1408\", \"576x1472\", \"576x1536\", \"640x1344\", \"640x1408\",\n\t// \"640x1472\", \"640x1536\", \"704x1152\", \"704x1216\", \"704x1280\", \"704x1344\",\n\t// \"704x1408\", \"704x1472\", \"736x1312\", \"768x1088\", \"768x1216\", \"768x1280\",\n\t// \"768x1344\", \"800x1280\", \"832x960\", \"832x1024\", \"832x1088\", \"832x1152\",\n\t// \"832x1216\", \"832x1248\", \"864x1152\", \"896x960\", \"896x1024\", \"896x1088\",\n\t// \"896x1120\", \"896x1152\", \"960x832\", \"960x896\", \"960x1024\", \"960x1088\",\n\t// \"1024x832\", \"1024x896\", \"1024x960\", \"1024x1024\", \"1088x768\", \"1088x832\",\n\t// \"1088x896\", \"1088x960\", \"1120x896\", \"1152x704\", \"1152x832\", \"1152x864\",\n\t// \"1152x896\", \"1216x704\", \"1216x768\", \"1216x832\", \"1248x832\", \"1280x704\",\n\t// \"1280x768\", \"1280x800\", \"1312x736\", \"1344x640\", \"1344x704\", \"1344x768\",\n\t// \"1408x576\", \"1408x640\", \"1408x704\", \"1472x576\", \"1472x640\", \"1472x704\",\n\t// \"1536x512\", \"1536x576\", \"1536x640\".\n\tResolution ResolutionIdeogram `json:\"resolution,omitzero,required\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// The rendering speed to use.\n\t//\n\t// Any of \"TURBO\", \"BALANCED\", \"DEFAULT\", \"QUALITY\".\n\tRenderingSpeed RenderingSpeed `json:\"rendering_speed,omitzero\"`\n\t// A list of 8 character hexadecimal codes representing the style of the image.\n\t// Cannot be used in conjunction with style_reference_images or style_type.\n\tStyleCodes []string `json:\"style_codes,omitzero\"`\n\t// A set of images to use as style references (maximum total size 10MB across all\n\t// style references). The images should be in JPEG, PNG or WebP format.\n\tStyleReferenceImages []io.Reader `json:\"style_reference_images,omitzero\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdeogramV3ReframeParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype IdeogramV3RemixParams struct {\n\t// The image to remix binary (max size 10MB); only JPEG, WebP and PNG formats are\n\t// supported at this time.\n\tImage io.Reader `json:\"image,omitzero,required\" format:\"binary\"`\n\t// The prompt to use to generate the image.\n\tPrompt      string           `json:\"prompt,required\"`\n\tImageWeight param.Opt[int64] `json:\"image_weight,omitzero\"`\n\t// Description of what to exclude from an image. Descriptions in the prompt take\n\t// precedence to descriptions in the negative prompt.\n\tNegativePrompt param.Opt[string] `json:\"negative_prompt,omitzero\"`\n\t// Number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// The aspect ratio to use for image generation, which determines the image's\n\t// resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.\n\t//\n\t// Any of \"1x3\", \"3x1\", \"1x2\", \"2x1\", \"9x16\", \"16x9\", \"10x16\", \"16x10\", \"2x3\",\n\t// \"3x2\", \"3x4\", \"4x3\", \"4x5\", \"5x4\", \"1x1\".\n\tAspectRatio AspectRatio `json:\"aspect_ratio,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPrompt MagicPromptOption `json:\"magic_prompt,omitzero\"`\n\t// The rendering speed to use.\n\t//\n\t// Any of \"TURBO\", \"BALANCED\", \"DEFAULT\", \"QUALITY\".\n\tRenderingSpeed RenderingSpeed `json:\"rendering_speed,omitzero\"`\n\t// The resolutions supported for Ideogram 3.0.\n\t//\n\t// Any of \"512x1536\", \"576x1408\", \"576x1472\", \"576x1536\", \"640x1344\", \"640x1408\",\n\t// \"640x1472\", \"640x1536\", \"704x1152\", \"704x1216\", \"704x1280\", \"704x1344\",\n\t// \"704x1408\", \"704x1472\", \"736x1312\", \"768x1088\", \"768x1216\", \"768x1280\",\n\t// \"768x1344\", \"800x1280\", \"832x960\", \"832x1024\", \"832x1088\", \"832x1152\",\n\t// \"832x1216\", \"832x1248\", \"864x1152\", \"896x960\", \"896x1024\", \"896x1088\",\n\t// \"896x1120\", \"896x1152\", \"960x832\", \"960x896\", \"960x1024\", \"960x1088\",\n\t// \"1024x832\", \"1024x896\", \"1024x960\", \"1024x1024\", \"1088x768\", \"1088x832\",\n\t// \"1088x896\", \"1088x960\", \"1120x896\", \"1152x704\", \"1152x832\", \"1152x864\",\n\t// \"1152x896\", \"1216x704\", \"1216x768\", \"1216x832\", \"1248x832\", \"1280x704\",\n\t// \"1280x768\", \"1280x800\", \"1312x736\", \"1344x640\", \"1344x704\", \"1344x768\",\n\t// \"1408x576\", \"1408x640\", \"1408x704\", \"1472x576\", \"1472x640\", \"1472x704\",\n\t// \"1536x512\", \"1536x576\", \"1536x640\".\n\tResolution ResolutionIdeogram `json:\"resolution,omitzero\"`\n\t// A list of 8 character hexadecimal codes representing the style of the image.\n\t// Cannot be used in conjunction with style_reference_images or style_type.\n\tStyleCodes []string `json:\"style_codes,omitzero\"`\n\t// A set of images to use as style references (maximum total size 10MB across all\n\t// style references). The images should be in JPEG, PNG or WebP format.\n\tStyleReferenceImages []io.Reader `json:\"style_reference_images,omitzero\" format:\"binary\"`\n\t// The style type to generate with.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\".\n\tStyleType StyleTypeV3 `json:\"style_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdeogramV3RemixParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype IdeogramV3ReplaceBackgroundParams struct {\n\t// The image whose background is being replaced (max size 10MB); only JPEG, WebP\n\t// and PNG formats are supported at this time.\n\tImage io.Reader `json:\"image,omitzero,required\" format:\"binary\"`\n\t// The prompt describing the desired new background.\n\tPrompt string `json:\"prompt,required\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPrompt MagicPromptOption `json:\"magic_prompt,omitzero\"`\n\t// The rendering speed to use.\n\t//\n\t// Any of \"TURBO\", \"BALANCED\", \"DEFAULT\", \"QUALITY\".\n\tRenderingSpeed RenderingSpeed `json:\"rendering_speed,omitzero\"`\n\t// A list of 8 character hexadecimal codes representing the style of the image.\n\t// Cannot be used in conjunction with style_reference_images or style_type.\n\tStyleCodes []string `json:\"style_codes,omitzero\"`\n\t// A set of images to use as style references (maximum total size 10MB across all\n\t// style references). The images should be in JPEG, PNG or WebP format.\n\tStyleReferenceImages []io.Reader `json:\"style_reference_images,omitzero\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdeogramV3ReplaceBackgroundParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype IdeogramV3Service struct {\n\tOptions []option.RequestOption\n}\n```\nIdeogramV3Service contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewIdeogramV3Service](#NewIdeogramV3Service) method instead.\n\n```go\nfunc NewIdeogramV3Service(opts ...option.RequestOption) (r IdeogramV3Service)\n```\nNewIdeogramV3Service generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *IdeogramV3Service) Edit(ctx context.Context, body IdeogramV3EditParams, opts ...option.RequestOption) (res *ImageGenerationResponse, err error)\n```\nEdit a given image synchronously using the provided mask with Ideogram 3.0. The mask indicates which part of the image should be edited, while the prompt and chosen style can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r *IdeogramV3Service) Generate(ctx context.Context, body IdeogramV3GenerateParams, opts ...option.RequestOption) (res *ImageGenerationResponse, err error)\n```\nGenerates images synchronously based on a given prompt and optional parameters using the Ideogram 3.0 model.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r *IdeogramV3Service) Reframe(ctx context.Context, body IdeogramV3ReframeParams, opts ...option.RequestOption) (res *ImageGenerationResponse, err error)\n```\nReframe a square image to a chosen resolution with Ideogram 3.0. The supported image formats include JPEG, PNG, and WebP.\n\nImage links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r *IdeogramV3Service) Remix(ctx context.Context, body IdeogramV3RemixParams, opts ...option.RequestOption) (res *ImageGenerationResponse, err error)\n```\nRemix provided images synchronously based on a given prompt and optional parameters with the Ideogram 3.0 model.\n\nInput images are cropped to the chosen aspect ratio before being remixed.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r *IdeogramV3Service) ReplaceBackground(ctx context.Context, body IdeogramV3ReplaceBackgroundParams, opts ...option.RequestOption) (res *ImageGenerationResponse, err error)\n```\nReplace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject will be identified and kept, while the background is replaced based on the prompt and chosen style. Supported image formats include JPEG, PNG, and WebP. Images links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\ntype ImageGenerationResponse struct {\n\t// The time the request was created.\n\tCreated time.Time `json:\"created,required\" format:\"date-time\"`\n\t// A list of ImageObjects that contain the generated image(s).\n\tData []ImageGenerationResponseData `json:\"data,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreated     respjson.Field\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe response which contains information about the generated image, including the download link. Images links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\nfunc (r ImageGenerationResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ImageGenerationResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ImageGenerationResponseData struct {\n\t// Whether this request passes safety checks. If false, the url field will be\n\t// empty.\n\tIsImageSafe bool `json:\"is_image_safe,required\"`\n\t// The prompt used for the generation. This may be different from the original\n\t// prompt.\n\tPrompt string `json:\"prompt,required\"`\n\t// The resolutions supported for Ideogram 3.0.\n\t//\n\t// Any of \"512x1536\", \"576x1408\", \"576x1472\", \"576x1536\", \"640x1344\", \"640x1408\",\n\t// \"640x1472\", \"640x1536\", \"704x1152\", \"704x1216\", \"704x1280\", \"704x1344\",\n\t// \"704x1408\", \"704x1472\", \"736x1312\", \"768x1088\", \"768x1216\", \"768x1280\",\n\t// \"768x1344\", \"800x1280\", \"832x960\", \"832x1024\", \"832x1088\", \"832x1152\",\n\t// \"832x1216\", \"832x1248\", \"864x1152\", \"896x960\", \"896x1024\", \"896x1088\",\n\t// \"896x1120\", \"896x1152\", \"960x832\", \"960x896\", \"960x1024\", \"960x1088\",\n\t// \"1024x832\", \"1024x896\", \"1024x960\", \"1024x1024\", \"1088x768\", \"1088x832\",\n\t// \"1088x896\", \"1088x960\", \"1120x896\", \"1152x704\", \"1152x832\", \"1152x864\",\n\t// \"1152x896\", \"1216x704\", \"1216x768\", \"1216x832\", \"1248x832\", \"1280x704\",\n\t// \"1280x768\", \"1280x800\", \"1312x736\", \"1344x640\", \"1344x704\", \"1344x768\",\n\t// \"1408x576\", \"1408x640\", \"1408x704\", \"1472x576\", \"1472x640\", \"1472x704\",\n\t// \"1536x512\", \"1536x576\", \"1536x640\".\n\tResolution ResolutionIdeogram `json:\"resolution,required\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed int64 `json:\"seed,required\"`\n\t// The style type to generate with.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\".\n\tStyleType StyleTypeV3 `json:\"style_type\"`\n\t// The direct link to the image generated.\n\tURL string `json:\"url,nullable\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIsImageSafe respjson.Field\n\t\tPrompt      respjson.Field\n\t\tResolution  respjson.Field\n\t\tSeed        respjson.Field\n\t\tStyleType   respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ImageGenerationResponseData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ImageGenerationResponseData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ImageRequestAspectRatio string\n```\n(Cannot be used in conjunction with resolution) The aspect ratio to use for image generation, which determines the image's resolution. Defaults to ASPECT\\_1\\_1.\n\n```go\nconst (\n\tImageRequestAspectRatioAspect10_16 ImageRequestAspectRatio = \"ASPECT_10_16\"\n\tImageRequestAspectRatioAspect16_10 ImageRequestAspectRatio = \"ASPECT_16_10\"\n\tImageRequestAspectRatioAspect9_16  ImageRequestAspectRatio = \"ASPECT_9_16\"\n\tImageRequestAspectRatioAspect16_9  ImageRequestAspectRatio = \"ASPECT_16_9\"\n\tImageRequestAspectRatioAspect3_2   ImageRequestAspectRatio = \"ASPECT_3_2\"\n\tImageRequestAspectRatioAspect2_3   ImageRequestAspectRatio = \"ASPECT_2_3\"\n\tImageRequestAspectRatioAspect4_3   ImageRequestAspectRatio = \"ASPECT_4_3\"\n\tImageRequestAspectRatioAspect3_4   ImageRequestAspectRatio = \"ASPECT_3_4\"\n\tImageRequestAspectRatioAspect1_1   ImageRequestAspectRatio = \"ASPECT_1_1\"\n\tImageRequestAspectRatioAspect1_3   ImageRequestAspectRatio = \"ASPECT_1_3\"\n\tImageRequestAspectRatioAspect3_1   ImageRequestAspectRatio = \"ASPECT_3_1\"\n)\n```\n\n```go\ntype ImageRequestParam struct {\n\t// The prompt to use to generate the image.\n\tPrompt string `json:\"prompt,required\"`\n\t// Only available for model versions V_1, V_1_TURBO, V_2 and V_2_TURBO. Description\n\t// of what to exclude from an image. Descriptions in the prompt take precedence to\n\t// descriptions in the negative prompt.\n\tNegativePrompt param.Opt[string] `json:\"negative_prompt,omitzero\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// (Cannot be used in conjunction with resolution) The aspect ratio to use for\n\t// image generation, which determines the image's resolution. Defaults to\n\t// ASPECT_1_1.\n\t//\n\t// Any of \"ASPECT_10_16\", \"ASPECT_16_10\", \"ASPECT_9_16\", \"ASPECT_16_9\",\n\t// \"ASPECT_3_2\", \"ASPECT_2_3\", \"ASPECT_4_3\", \"ASPECT_3_4\", \"ASPECT_1_1\",\n\t// \"ASPECT_1_3\", \"ASPECT_3_1\".\n\tAspectRatio ImageRequestAspectRatio `json:\"aspect_ratio,omitzero\"`\n\t// A color palette for generation, must EITHER be specified via one of the presets\n\t// (name) or explicitly via hexadecimal representations of the color with optional\n\t// weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.\n\tColorPalette ColorPaletteUnionParam `json:\"color_palette,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPromptOption MagicPromptOption `json:\"magic_prompt_option,omitzero\"`\n\t// The magic prompt version to use when magic prompt option is set to AUTO or ON.\n\t//\n\t// Any of \"V_0\", \"V_0_1\", \"V_0_2\".\n\tMagicPromptVersion MagicPromptVersionEnum `json:\"magic_prompt_version,omitzero\"`\n\t// The model used to generate an image or edit one. /generate and /remix supports\n\t// all model types, however, /edit is only supported for V_2 and V_2_TURBO.\n\t//\n\t// Any of \"V_1\", \"V_1_TURBO\", \"V_2\", \"V_2_TURBO\", \"V_2A\", \"V_2A_TURBO\", \"V_3\".\n\tModel ModelEnum `json:\"model,omitzero\"`\n\t// (For model_version for 2.0 only, cannot be used in conjunction with\n\t// aspect_ratio) The resolution to use for image generation, represented in width x\n\t// height. If not specified, defaults to using aspect_ratio.\n\t//\n\t// Any of \"RESOLUTION_512_1536\", \"RESOLUTION_576_1408\", \"RESOLUTION_576_1472\",\n\t// \"RESOLUTION_576_1536\", \"RESOLUTION_640_1024\", \"RESOLUTION_640_1344\",\n\t// \"RESOLUTION_640_1408\", \"RESOLUTION_640_1472\", \"RESOLUTION_640_1536\",\n\t// \"RESOLUTION_704_1152\", \"RESOLUTION_704_1216\", \"RESOLUTION_704_1280\",\n\t// \"RESOLUTION_704_1344\", \"RESOLUTION_704_1408\", \"RESOLUTION_704_1472\",\n\t// \"RESOLUTION_720_1280\", \"RESOLUTION_736_1312\", \"RESOLUTION_768_1024\",\n\t// \"RESOLUTION_768_1088\", \"RESOLUTION_768_1152\", \"RESOLUTION_768_1216\",\n\t// \"RESOLUTION_768_1232\", \"RESOLUTION_768_1280\", \"RESOLUTION_768_1344\",\n\t// \"RESOLUTION_832_960\", \"RESOLUTION_832_1024\", \"RESOLUTION_832_1088\",\n\t// \"RESOLUTION_832_1152\", \"RESOLUTION_832_1216\", \"RESOLUTION_832_1248\",\n\t// \"RESOLUTION_864_1152\", \"RESOLUTION_896_960\", \"RESOLUTION_896_1024\",\n\t// \"RESOLUTION_896_1088\", \"RESOLUTION_896_1120\", \"RESOLUTION_896_1152\",\n\t// \"RESOLUTION_960_832\", \"RESOLUTION_960_896\", \"RESOLUTION_960_1024\",\n\t// \"RESOLUTION_960_1088\", \"RESOLUTION_1024_640\", \"RESOLUTION_1024_768\",\n\t// \"RESOLUTION_1024_832\", \"RESOLUTION_1024_896\", \"RESOLUTION_1024_960\",\n\t// \"RESOLUTION_1024_1024\", \"RESOLUTION_1088_768\", \"RESOLUTION_1088_832\",\n\t// \"RESOLUTION_1088_896\", \"RESOLUTION_1088_960\", \"RESOLUTION_1120_896\",\n\t// \"RESOLUTION_1152_704\", \"RESOLUTION_1152_768\", \"RESOLUTION_1152_832\",\n\t// \"RESOLUTION_1152_864\", \"RESOLUTION_1152_896\", \"RESOLUTION_1216_704\",\n\t// \"RESOLUTION_1216_768\", \"RESOLUTION_1216_832\", \"RESOLUTION_1232_768\",\n\t// \"RESOLUTION_1248_832\", \"RESOLUTION_1280_704\", \"RESOLUTION_1280_720\",\n\t// \"RESOLUTION_1280_768\", \"RESOLUTION_1280_800\", \"RESOLUTION_1312_736\",\n\t// \"RESOLUTION_1344_640\", \"RESOLUTION_1344_704\", \"RESOLUTION_1344_768\",\n\t// \"RESOLUTION_1408_576\", \"RESOLUTION_1408_640\", \"RESOLUTION_1408_704\",\n\t// \"RESOLUTION_1472_576\", \"RESOLUTION_1472_640\", \"RESOLUTION_1472_704\",\n\t// \"RESOLUTION_1536_512\", \"RESOLUTION_1536_576\", \"RESOLUTION_1536_640\".\n\tResolution ResolutionImageGeneration `json:\"resolution,omitzero\"`\n\t// The style type to generate with; this is only applicable for models V_2 and\n\t// above and should not be specified for model versions V_1.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\", \"RENDER_3D\", \"ANIME\", \"CUSTOM\".\n\tStyleType StyleTypeV2AndAbove `json:\"style_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Prompt is required.\n\n```go\nfunc (r ImageRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ImageRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InternalTestingNewParams struct {\n\tRequiredDateTypeField time.Time            `json:\"required_date_type_field,required\" format:\"date\"`\n\tXPosition             param.Opt[int64]     `json:\"x_position,omitzero\"`\n\tDateTimeTypeField     param.Opt[time.Time] `json:\"date_time_type_field,omitzero\" format:\"date-time\"`\n\tDateTypeField         param.Opt[time.Time] `json:\"date_type_field,omitzero\" format:\"date\"`\n\tSomeText              param.Opt[string]    `json:\"some_text,omitzero\"`\n\tXTestHeader           param.Opt[string]    `header:\"X-Test-Header,omitzero\" json:\"-\"`\n\tXTestHeader2          param.Opt[string]    `header:\"X-Test-Header-2,omitzero\" json:\"-\"`\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tAnotherImageFile io.Reader `json:\"another_image_file,omitzero\" format:\"binary\"`\n\t// Any of \"EIN\", \"ZWEI\", \"DREI\".\n\tEnumTypeField InternalTestingNewParamsEnumTypeField `json:\"enum_type_field,omitzero\"`\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tImageFile                  io.Reader                                          `json:\"image_file,omitzero\" format:\"binary\"`\n\tNestedObject               NestedObjectParam                                  `json:\"nested_object,omitzero\"`\n\tNestedObjectRequiredFields InternalTestingNewParamsNestedObjectRequiredFields `json:\"nested_object_required_fields,omitzero\"`\n\tRepeatedComplexField       []NestedObjectParam                                `json:\"repeated_complex_field,omitzero\"`\n\tRepeatedPrimitiveField     []string                                           `json:\"repeated_primitive_field,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r InternalTestingNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype InternalTestingNewParamsEnumTypeField string\n```\n\n```go\nconst (\n\tInternalTestingNewParamsEnumTypeFieldEin  InternalTestingNewParamsEnumTypeField = \"EIN\"\n\tInternalTestingNewParamsEnumTypeFieldZwei InternalTestingNewParamsEnumTypeField = \"ZWEI\"\n\tInternalTestingNewParamsEnumTypeFieldDrei InternalTestingNewParamsEnumTypeField = \"DREI\"\n)\n```\n\n```go\ntype InternalTestingNewParamsNestedObjectRequiredFields struct {\n\tPropOne string `json:\"prop_one,required\"`\n\tPropTwo string `json:\"prop_two,required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties PropOne, PropTwo are required.\n\n```go\nfunc (r InternalTestingNewParamsNestedObjectRequiredFields) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *InternalTestingNewParamsNestedObjectRequiredFields) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InternalTestingNewResponse struct {\n\tResponseContent string `json:\"response_content\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tResponseContent respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InternalTestingNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InternalTestingNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InternalTestingService struct {\n\tOptions []option.RequestOption\n}\n```\nInternalTestingService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewInternalTestingService](#NewInternalTestingService) method instead.\n\n```go\nfunc NewInternalTestingService(opts ...option.RequestOption) (r InternalTestingService)\n```\nNewInternalTestingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *InternalTestingService) New(ctx context.Context, params InternalTestingNewParams, opts ...option.RequestOption) (res *InternalTestingNewResponse, err error)\n```\nJust a testing endpoint\n\n```go\ntype MagicPromptOption string\n```\nDetermine if MagicPrompt should be used in generating the request or not.\n\n```go\nconst (\n\tMagicPromptOptionAuto MagicPromptOption = \"AUTO\"\n\tMagicPromptOptionOn   MagicPromptOption = \"ON\"\n\tMagicPromptOptionOff  MagicPromptOption = \"OFF\"\n)\n```\n\n```go\ntype MagicPromptVersionEnum string\n```\nThe magic prompt version to use when magic prompt option is set to AUTO or ON.\n\n```go\nconst (\n\tMagicPromptVersionEnumV0   MagicPromptVersionEnum = \"V_0\"\n\tMagicPromptVersionEnumV0_1 MagicPromptVersionEnum = \"V_0_1\"\n\tMagicPromptVersionEnumV0_2 MagicPromptVersionEnum = \"V_0_2\"\n)\n```\n\n```go\ntype ManageAPIAPIKeyService struct {\n\tOptions []option.RequestOption\n}\n```\nManageAPIAPIKeyService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewManageAPIAPIKeyService](#NewManageAPIAPIKeyService) method instead.\n\n```go\nfunc NewManageAPIAPIKeyService(opts ...option.RequestOption) (r ManageAPIAPIKeyService)\n```\nNewManageAPIAPIKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ManageAPIAPIKeyService) Delete(ctx context.Context, apiKeyID string, opts ...option.RequestOption) (err error)\n```\nDelete an API key.\n\n```go\nfunc (r *ManageAPIAPIKeyService) Get(ctx context.Context, opts ...option.RequestOption) (res *ManageApiapiKeyGetResponse, err error)\n```\nRetrieve current API keys and their respective data.\n\n```go\nfunc (r *ManageAPIAPIKeyService) New(ctx context.Context, opts ...option.RequestOption) (res *ManageApiapiKeyNewResponse, err error)\n```\nCreates an API key.\n\n```go\ntype ManageAPIAddCreditsParams struct {\n\t// Represents a price.\n\tAmount PriceParam `json:\"amount,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ManageAPIAddCreditsParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManageAPIAddCreditsParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPIAddCreditsResponse struct {\n\t// Represents a price.\n\tAmount Price `json:\"amount,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPIAddCreditsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPIAddCreditsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPIGetStripeSubscriptionParams struct {\n\t// Whether the subscription is intended to be used for business or personal use.\n\tIsBusiness param.Opt[bool] `query:\"isBusiness,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ManageAPIGetStripeSubscriptionParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ManageAPIGetStripeSubscriptionParams](#ManageAPIGetStripeSubscriptionParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ManageAPIGetStripeSubscriptionResponse struct {\n\t// DEPRECATED. The URL for the user to manage the existing Stripe subscription\n\t// plan. Get this from ManageApiSubscriptionResponse instead.\n\t//\n\t// Deprecated: deprecated\n\tStripeBillingURL string `json:\"stripe_billing_url\"`\n\t// The URL for the user to checkout the Stripe subscription plan.\n\tStripeSubscriptionURL string `json:\"stripe_subscription_url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStripeBillingURL      respjson.Field\n\t\tStripeSubscriptionURL respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPIGetStripeSubscriptionResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPIGetStripeSubscriptionResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPIReactivateResponse struct {\n\t// The current recharge settings for the API subscription.\n\tRechargeSettings RechargeSettingsResponse `json:\"recharge_settings\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRechargeSettings respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse to re-activating API settings.\n\n```go\nfunc (r ManageAPIReactivateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPIReactivateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPIService struct {\n\tOptions      []option.RequestOption\n\tAPIKeys      ManageAPIAPIKeyService\n\tSubscription ManageAPISubscriptionService\n\tTerms        ManageAPITermService\n}\n```\nManageAPIService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewManageAPIService](#NewManageAPIService) method instead.\n\n```go\nfunc NewManageAPIService(opts ...option.RequestOption) (r ManageAPIService)\n```\nNewManageAPIService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ManageAPIService) AddCredits(ctx context.Context, body ManageAPIAddCreditsParams, opts ...option.RequestOption) (res *ManageAPIAddCreditsResponse, err error)\n```\nAdd credits to an API user's account.\n\n```go\nfunc (r *ManageAPIService) GetStripeSubscription(ctx context.Context, query ManageAPIGetStripeSubscriptionParams, opts ...option.RequestOption) (res *ManageAPIGetStripeSubscriptionResponse, err error)\n```\nRetrieve data relevant to connecting to Stripe.\n\n```go\nfunc (r *ManageAPIService) Reactivate(ctx context.Context, opts ...option.RequestOption) (res *ManageAPIReactivateResponse, err error)\n```\nReactivates a subscription by attempting to re-enable Metronome billing.\n\n```go\ntype ManageAPISubscriptionGetResponse struct {\n\t// Whether or not the latest required terms have been accepted.\n\tHasAcceptedTerms bool `json:\"has_accepted_terms,required\"`\n\t// Whether or not Stripe is setup for API usage.\n\tHasStripeSetup bool `json:\"has_stripe_setup,required\"`\n\t// The URL to display the customer usage dashboard, in dark mode.\n\t//\n\t// Deprecated: deprecated\n\tMetronomeDashboardDarkModeURL string `json:\"metronome_dashboard_dark_mode_url\"`\n\t// The URL to display the customer usage dashboard.\n\t//\n\t// Deprecated: deprecated\n\tMetronomeDashboardURL string                                         `json:\"metronome_dashboard_url\"`\n\tMetronomeLinks        ManageAPISubscriptionGetResponseMetronomeLinks `json:\"metronome_links\"`\n\t// The current recharge settings for the API subscription.\n\tRechargeSettings RechargeSettingsResponse `json:\"recharge_settings\"`\n\t// The URL for the user to manage the existing Stripe subscription plan.\n\tStripeBillingURL string `json:\"stripe_billing_url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHasAcceptedTerms              respjson.Field\n\t\tHasStripeSetup                respjson.Field\n\t\tMetronomeDashboardDarkModeURL respjson.Field\n\t\tMetronomeDashboardURL         respjson.Field\n\t\tMetronomeLinks                respjson.Field\n\t\tRechargeSettings              respjson.Field\n\t\tStripeBillingURL              respjson.Field\n\t\tExtraFields                   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPISubscriptionGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPISubscriptionGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPISubscriptionGetResponseMetronomeLinks struct {\n\t// The URL to display the customer invoice and API usage.\n\tCreditsIframeDarkModeURL string `json:\"credits_iframe_dark_mode_url\"`\n\t// The URL to display the customer invoice and API usage.\n\tCreditsIframeURL string `json:\"credits_iframe_url\"`\n\t// The URL to display the customer invoice and API usage.\n\tInvoicesIframeDarkModeURL string `json:\"invoices_iframe_dark_mode_url\"`\n\t// The URL to display the customer invoice and API usage.\n\tInvoicesIframeURL string `json:\"invoices_iframe_url\"`\n\t// The URL to display the customer usage dashboard, in dark mode.\n\tUsageIframeDarkModeURL string `json:\"usage_iframe_dark_mode_url\"`\n\t// The URL to display the customer usage dashboard.\n\tUsageIframeURL string `json:\"usage_iframe_url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreditsIframeDarkModeURL  respjson.Field\n\t\tCreditsIframeURL          respjson.Field\n\t\tInvoicesIframeDarkModeURL respjson.Field\n\t\tInvoicesIframeURL         respjson.Field\n\t\tUsageIframeDarkModeURL    respjson.Field\n\t\tUsageIframeURL            respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPISubscriptionGetResponseMetronomeLinks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPISubscriptionGetResponseMetronomeLinks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPISubscriptionService struct {\n\tOptions []option.RequestOption\n}\n```\nManageAPISubscriptionService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewManageAPISubscriptionService](#NewManageAPISubscriptionService) method instead.\n\n```go\nfunc NewManageAPISubscriptionService(opts ...option.RequestOption) (r ManageAPISubscriptionService)\n```\nNewManageAPISubscriptionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ManageAPISubscriptionService) Get(ctx context.Context, opts ...option.RequestOption) (res *ManageAPISubscriptionGetResponse, err error)\n```\nRetrieve data relevant to creating an API subscription.\n\n```go\nfunc (r *ManageAPISubscriptionService) Update(ctx context.Context, body ManageAPISubscriptionUpdateParams, opts ...option.RequestOption) (res *ManageAPISubscriptionUpdateResponse, err error)\n```\nUpdate API subscription settings\n\n```go\ntype ManageAPISubscriptionUpdateParams struct {\n\t// The current recharge settings for the API subscription.\n\tRechargeSettings RechargeSettingsSubscriptionParam `json:\"recharge_settings,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ManageAPISubscriptionUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManageAPISubscriptionUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPISubscriptionUpdateResponse struct {\n\t// The current recharge settings for the API subscription.\n\tRechargeSettings RechargeSettingsResponse `json:\"recharge_settings\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRechargeSettings respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe updated API subscription.\n\n```go\nfunc (r ManageAPISubscriptionUpdateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPISubscriptionUpdateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPITermAcceptParams struct {\n\t// The ID of the terms which are being accepted.\n\tTermsID string `json:\"terms_id,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ManageAPITermAcceptParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManageAPITermAcceptParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPITermGetResponse struct {\n\tAPITerms ManageAPITermGetResponseAPITerms `json:\"api_terms,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAPITerms    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPITermGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPITermGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPITermGetResponseAPITerms struct {\n\t// The ID of the terms.\n\tTermsID string `json:\"terms_id,required\"`\n\t// The URL where the terms are hosted.\n\tTermsURL string `json:\"terms_url,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTermsID     respjson.Field\n\t\tTermsURL    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageAPITermGetResponseAPITerms) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageAPITermGetResponseAPITerms) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageAPITermService struct {\n\tOptions []option.RequestOption\n}\n```\nManageAPITermService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewManageAPITermService](#NewManageAPITermService) method instead.\n\n```go\nfunc NewManageAPITermService(opts ...option.RequestOption) (r ManageAPITermService)\n```\nNewManageAPITermService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ManageAPITermService) Accept(ctx context.Context, body ManageAPITermAcceptParams, opts ...option.RequestOption) (err error)\n```\nAccept terms\n\n```go\nfunc (r *ManageAPITermService) Get(ctx context.Context, opts ...option.RequestOption) (res *ManageAPITermGetResponse, err error)\n```\nRetrieve the latest terms of service for API usage.\n\n```go\ntype ManageApiapiKeyGetResponse struct {\n\t// The current API keys that are active. Only returns redacted keys.\n\tCurrentAPIKeys []ManageApiapiKeyGetResponseCurrentAPIKey `json:\"current_api_keys\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCurrentAPIKeys respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageApiapiKeyGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageApiapiKeyGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageApiapiKeyGetResponseCurrentAPIKey struct {\n\t// A URL safe base64 encoded UUID\n\tAPIKeyID string `json:\"api_key_id,required\"`\n\t// The time at which the key was created\n\tCreationTime time.Time `json:\"creation_time,required\" format:\"date-time\"`\n\t// A redacted text snippet of the API key. Contains the first 4 characters of the\n\t// API key\n\tRedactedAPIKey string `json:\"redacted_api_key,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAPIKeyID       respjson.Field\n\t\tCreationTime   respjson.Field\n\t\tRedactedAPIKey respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA representation of an API key that does not contain the full key.\n\n```go\nfunc (r ManageApiapiKeyGetResponseCurrentAPIKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageApiapiKeyGetResponseCurrentAPIKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageApiapiKeyNewResponse struct {\n\t// The API key to use when making authenticated requests with the API. This key\n\t// will only be shown once.\n\tAPIKey string `json:\"api_key,required\"`\n\t// The ID of the API key. A URL safe base64 encoded UUID\n\tAPIKeyID string `json:\"api_key_id,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAPIKey      respjson.Field\n\t\tAPIKeyID    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManageApiapiKeyNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManageApiapiKeyNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManageService struct {\n\tOptions []option.RequestOption\n\tAPI     ManageAPIService\n}\n```\nManageService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewManageService](#NewManageService) method instead.\n\n```go\nfunc NewManageService(opts ...option.RequestOption) (r ManageService)\n```\nNewManageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\ntype ModelEnum string\n```\nThe model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V\\_2 and V\\_2\\_TURBO.\n\n```go\nconst (\n\tModelEnumV1       ModelEnum = \"V_1\"\n\tModelEnumV1Turbo  ModelEnum = \"V_1_TURBO\"\n\tModelEnumV2       ModelEnum = \"V_2\"\n\tModelEnumV2Turbo  ModelEnum = \"V_2_TURBO\"\n\tModelEnumV2A      ModelEnum = \"V_2A\"\n\tModelEnumV2ATurbo ModelEnum = \"V_2A_TURBO\"\n\tModelEnumV3       ModelEnum = \"V_3\"\n)\n```\n\n```go\ntype NestedObjectParam struct {\n\tPropOne param.Opt[string] `json:\"prop_one,omitzero\"`\n\tPropTwo param.Opt[string] `json:\"prop_two,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r NestedObjectParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *NestedObjectParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Price struct {\n\t// The amount of the currency in the common denomination. For example, in USD this\n\t// is cents.\n\tAmount float64 `json:\"amount,required\"`\n\t// The ISO 4217 currency code for the price object.\n\tCurrencyCode string `json:\"currency_code,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount       respjson.Field\n\t\tCurrencyCode respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRepresents a price.\n\n```go\nfunc (r Price) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r Price) ToParam() PriceParam\n```\nToParam converts this Price to a PriceParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with PriceParam.Overrides()\n\n```go\nfunc (r *Price) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PriceParam struct {\n\t// The amount of the currency in the common denomination. For example, in USD this\n\t// is cents.\n\tAmount float64 `json:\"amount,required\"`\n\t// The ISO 4217 currency code for the price object.\n\tCurrencyCode string `json:\"currency_code,required\"`\n\t// contains filtered or unexported fields\n}\n```\nRepresents a price.\n\nThe properties Amount, CurrencyCode are required.\n\n```go\nfunc (r PriceParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PriceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RechargeSettingsResponse struct {\n\t// Whether or not the recharge setting is currently active.\n\tIsActive bool `json:\"is_active,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIsActive    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tRechargeSettingsSubscription\n}\n```\nThe current recharge settings for the API subscription.\n\n```go\nfunc (r RechargeSettingsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RechargeSettingsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RechargeSettingsSubscription struct {\n\t// Represents a price.\n\tMinimumBalanceThreshold Price `json:\"minimum_balance_threshold,required\"`\n\t// Represents a price.\n\tTopUpBalance Price `json:\"top_up_balance,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMinimumBalanceThreshold respjson.Field\n\t\tTopUpBalance            respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe current recharge settings for the API subscription.\n\n```go\nfunc (r RechargeSettingsSubscription) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r RechargeSettingsSubscription) ToParam() RechargeSettingsSubscriptionParam\n```\nToParam converts this RechargeSettingsSubscription to a RechargeSettingsSubscriptionParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with RechargeSettingsSubscriptionParam.Overrides()\n\n```go\nfunc (r *RechargeSettingsSubscription) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RechargeSettingsSubscriptionParam struct {\n\t// Represents a price.\n\tMinimumBalanceThreshold PriceParam `json:\"minimum_balance_threshold,omitzero,required\"`\n\t// Represents a price.\n\tTopUpBalance PriceParam `json:\"top_up_balance,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe current recharge settings for the API subscription.\n\nThe properties MinimumBalanceThreshold, TopUpBalance are required.\n\n```go\nfunc (r RechargeSettingsSubscriptionParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RechargeSettingsSubscriptionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReframeNewParams struct {\n\t// The image being reframed (max size 10MB); only JPEG, WebP and PNG formats are\n\t// supported at this time.\n\tImageFile io.Reader `json:\"image_file,omitzero,required\" format:\"binary\"`\n\t// The model used to generate an image or edit one. /generate and /remix supports\n\t// all model types, however, /edit is only supported for V_2 and V_2_TURBO.\n\t//\n\t// Any of \"V_1\", \"V_1_TURBO\", \"V_2\", \"V_2_TURBO\", \"V_2A\", \"V_2A_TURBO\", \"V_3\".\n\tModel ModelEnum `json:\"model,omitzero,required\"`\n\t// (For model_version for 2.0 only, cannot be used in conjunction with\n\t// aspect_ratio) The resolution to use for image generation, represented in width x\n\t// height. If not specified, defaults to using aspect_ratio.\n\t//\n\t// Any of \"RESOLUTION_512_1536\", \"RESOLUTION_576_1408\", \"RESOLUTION_576_1472\",\n\t// \"RESOLUTION_576_1536\", \"RESOLUTION_640_1024\", \"RESOLUTION_640_1344\",\n\t// \"RESOLUTION_640_1408\", \"RESOLUTION_640_1472\", \"RESOLUTION_640_1536\",\n\t// \"RESOLUTION_704_1152\", \"RESOLUTION_704_1216\", \"RESOLUTION_704_1280\",\n\t// \"RESOLUTION_704_1344\", \"RESOLUTION_704_1408\", \"RESOLUTION_704_1472\",\n\t// \"RESOLUTION_720_1280\", \"RESOLUTION_736_1312\", \"RESOLUTION_768_1024\",\n\t// \"RESOLUTION_768_1088\", \"RESOLUTION_768_1152\", \"RESOLUTION_768_1216\",\n\t// \"RESOLUTION_768_1232\", \"RESOLUTION_768_1280\", \"RESOLUTION_768_1344\",\n\t// \"RESOLUTION_832_960\", \"RESOLUTION_832_1024\", \"RESOLUTION_832_1088\",\n\t// \"RESOLUTION_832_1152\", \"RESOLUTION_832_1216\", \"RESOLUTION_832_1248\",\n\t// \"RESOLUTION_864_1152\", \"RESOLUTION_896_960\", \"RESOLUTION_896_1024\",\n\t// \"RESOLUTION_896_1088\", \"RESOLUTION_896_1120\", \"RESOLUTION_896_1152\",\n\t// \"RESOLUTION_960_832\", \"RESOLUTION_960_896\", \"RESOLUTION_960_1024\",\n\t// \"RESOLUTION_960_1088\", \"RESOLUTION_1024_640\", \"RESOLUTION_1024_768\",\n\t// \"RESOLUTION_1024_832\", \"RESOLUTION_1024_896\", \"RESOLUTION_1024_960\",\n\t// \"RESOLUTION_1024_1024\", \"RESOLUTION_1088_768\", \"RESOLUTION_1088_832\",\n\t// \"RESOLUTION_1088_896\", \"RESOLUTION_1088_960\", \"RESOLUTION_1120_896\",\n\t// \"RESOLUTION_1152_704\", \"RESOLUTION_1152_768\", \"RESOLUTION_1152_832\",\n\t// \"RESOLUTION_1152_864\", \"RESOLUTION_1152_896\", \"RESOLUTION_1216_704\",\n\t// \"RESOLUTION_1216_768\", \"RESOLUTION_1216_832\", \"RESOLUTION_1232_768\",\n\t// \"RESOLUTION_1248_832\", \"RESOLUTION_1280_704\", \"RESOLUTION_1280_720\",\n\t// \"RESOLUTION_1280_768\", \"RESOLUTION_1280_800\", \"RESOLUTION_1312_736\",\n\t// \"RESOLUTION_1344_640\", \"RESOLUTION_1344_704\", \"RESOLUTION_1344_768\",\n\t// \"RESOLUTION_1408_576\", \"RESOLUTION_1408_640\", \"RESOLUTION_1408_704\",\n\t// \"RESOLUTION_1472_576\", \"RESOLUTION_1472_640\", \"RESOLUTION_1472_704\",\n\t// \"RESOLUTION_1536_512\", \"RESOLUTION_1536_576\", \"RESOLUTION_1536_640\".\n\tResolution ResolutionImageGeneration `json:\"resolution,omitzero,required\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// The style type to generate with; this is only applicable for models V_2 and\n\t// above and should not be specified for model versions V_1.\n\t//\n\t// Any of \"AUTO\", \"GENERAL\", \"REALISTIC\", \"DESIGN\", \"RENDER_3D\", \"ANIME\", \"CUSTOM\".\n\tStyleType StyleTypeV2AndAbove `json:\"style_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ReframeNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype ReframeService struct {\n\tOptions []option.RequestOption\n}\n```\nReframeService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewReframeService](#NewReframeService) method instead.\n\n```go\nfunc NewReframeService(opts ...option.RequestOption) (r ReframeService)\n```\nNewReframeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ReframeService) New(ctx context.Context, body ReframeNewParams, opts ...option.RequestOption) (res *GenerateImage, err error)\n```\nReframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.\n\nImage links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\ntype RemixNewParams struct {\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tImageFile io.Reader `json:\"image_file,omitzero,required\" format:\"binary\"`\n\t// A request to generate a new image using a provided image and a prompt.\n\tImageRequest RemixNewParamsImageRequest `json:\"image_request,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RemixNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype RemixNewParamsImageRequest struct {\n\tImageWeight param.Opt[int64] `json:\"image_weight,omitzero\"`\n\tImageRequestParam\n}\n```\nA request to generate a new image using a provided image and a prompt.\n\n```go\nfunc (r RemixNewParamsImageRequest) MarshalJSON() (data []byte, err error)\n```\n\n```go\ntype RemixService struct {\n\tOptions []option.RequestOption\n}\n```\nRemixService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewRemixService](#NewRemixService) method instead.\n\n```go\nfunc NewRemixService(opts ...option.RequestOption) (r RemixService)\n```\nNewRemixService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *RemixService) New(ctx context.Context, body RemixNewParams, opts ...option.RequestOption) (res *GenerateImage, err error)\n```\nRemix provided images synchronously based on a given prompt and optional parameters.\n\nInput images are cropped to the chosen aspect ratio before being remixed.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n```go\ntype RenderingSpeed string\n```\nThe rendering speed to use.\n\n```go\nconst (\n\tRenderingSpeedTurbo    RenderingSpeed = \"TURBO\"\n\tRenderingSpeedBalanced RenderingSpeed = \"BALANCED\"\n\tRenderingSpeedDefault  RenderingSpeed = \"DEFAULT\"\n\tRenderingSpeedQuality  RenderingSpeed = \"QUALITY\"\n)\n```\n\n```go\ntype ResolutionIdeogram string\n```\nThe resolutions supported for Ideogram 3.0.\n\n```go\nconst (\n\tResolutionIdeogram512x1536  ResolutionIdeogram = \"512x1536\"\n\tResolutionIdeogram576x1408  ResolutionIdeogram = \"576x1408\"\n\tResolutionIdeogram576x1472  ResolutionIdeogram = \"576x1472\"\n\tResolutionIdeogram576x1536  ResolutionIdeogram = \"576x1536\"\n\tResolutionIdeogram640x1344  ResolutionIdeogram = \"640x1344\"\n\tResolutionIdeogram640x1408  ResolutionIdeogram = \"640x1408\"\n\tResolutionIdeogram640x1472  ResolutionIdeogram = \"640x1472\"\n\tResolutionIdeogram640x1536  ResolutionIdeogram = \"640x1536\"\n\tResolutionIdeogram704x1152  ResolutionIdeogram = \"704x1152\"\n\tResolutionIdeogram704x1216  ResolutionIdeogram = \"704x1216\"\n\tResolutionIdeogram704x1280  ResolutionIdeogram = \"704x1280\"\n\tResolutionIdeogram704x1344  ResolutionIdeogram = \"704x1344\"\n\tResolutionIdeogram704x1408  ResolutionIdeogram = \"704x1408\"\n\tResolutionIdeogram704x1472  ResolutionIdeogram = \"704x1472\"\n\tResolutionIdeogram736x1312  ResolutionIdeogram = \"736x1312\"\n\tResolutionIdeogram768x1088  ResolutionIdeogram = \"768x1088\"\n\tResolutionIdeogram768x1216  ResolutionIdeogram = \"768x1216\"\n\tResolutionIdeogram768x1280  ResolutionIdeogram = \"768x1280\"\n\tResolutionIdeogram768x1344  ResolutionIdeogram = \"768x1344\"\n\tResolutionIdeogram800x1280  ResolutionIdeogram = \"800x1280\"\n\tResolutionIdeogram832x960   ResolutionIdeogram = \"832x960\"\n\tResolutionIdeogram832x1024  ResolutionIdeogram = \"832x1024\"\n\tResolutionIdeogram832x1088  ResolutionIdeogram = \"832x1088\"\n\tResolutionIdeogram832x1152  ResolutionIdeogram = \"832x1152\"\n\tResolutionIdeogram832x1216  ResolutionIdeogram = \"832x1216\"\n\tResolutionIdeogram832x1248  ResolutionIdeogram = \"832x1248\"\n\tResolutionIdeogram864x1152  ResolutionIdeogram = \"864x1152\"\n\tResolutionIdeogram896x960   ResolutionIdeogram = \"896x960\"\n\tResolutionIdeogram896x1024  ResolutionIdeogram = \"896x1024\"\n\tResolutionIdeogram896x1088  ResolutionIdeogram = \"896x1088\"\n\tResolutionIdeogram896x1120  ResolutionIdeogram = \"896x1120\"\n\tResolutionIdeogram896x1152  ResolutionIdeogram = \"896x1152\"\n\tResolutionIdeogram960x832   ResolutionIdeogram = \"960x832\"\n\tResolutionIdeogram960x896   ResolutionIdeogram = \"960x896\"\n\tResolutionIdeogram960x1024  ResolutionIdeogram = \"960x1024\"\n\tResolutionIdeogram960x1088  ResolutionIdeogram = \"960x1088\"\n\tResolutionIdeogram1024x832  ResolutionIdeogram = \"1024x832\"\n\tResolutionIdeogram1024x896  ResolutionIdeogram = \"1024x896\"\n\tResolutionIdeogram1024x960  ResolutionIdeogram = \"1024x960\"\n\tResolutionIdeogram1024x1024 ResolutionIdeogram = \"1024x1024\"\n\tResolutionIdeogram1088x768  ResolutionIdeogram = \"1088x768\"\n\tResolutionIdeogram1088x832  ResolutionIdeogram = \"1088x832\"\n\tResolutionIdeogram1088x896  ResolutionIdeogram = \"1088x896\"\n\tResolutionIdeogram1088x960  ResolutionIdeogram = \"1088x960\"\n\tResolutionIdeogram1120x896  ResolutionIdeogram = \"1120x896\"\n\tResolutionIdeogram1152x704  ResolutionIdeogram = \"1152x704\"\n\tResolutionIdeogram1152x832  ResolutionIdeogram = \"1152x832\"\n\tResolutionIdeogram1152x864  ResolutionIdeogram = \"1152x864\"\n\tResolutionIdeogram1152x896  ResolutionIdeogram = \"1152x896\"\n\tResolutionIdeogram1216x704  ResolutionIdeogram = \"1216x704\"\n\tResolutionIdeogram1216x768  ResolutionIdeogram = \"1216x768\"\n\tResolutionIdeogram1216x832  ResolutionIdeogram = \"1216x832\"\n\tResolutionIdeogram1248x832  ResolutionIdeogram = \"1248x832\"\n\tResolutionIdeogram1280x704  ResolutionIdeogram = \"1280x704\"\n\tResolutionIdeogram1280x768  ResolutionIdeogram = \"1280x768\"\n\tResolutionIdeogram1280x800  ResolutionIdeogram = \"1280x800\"\n\tResolutionIdeogram1312x736  ResolutionIdeogram = \"1312x736\"\n\tResolutionIdeogram1344x640  ResolutionIdeogram = \"1344x640\"\n\tResolutionIdeogram1344x704  ResolutionIdeogram = \"1344x704\"\n\tResolutionIdeogram1344x768  ResolutionIdeogram = \"1344x768\"\n\tResolutionIdeogram1408x576  ResolutionIdeogram = \"1408x576\"\n\tResolutionIdeogram1408x640  ResolutionIdeogram = \"1408x640\"\n\tResolutionIdeogram1408x704  ResolutionIdeogram = \"1408x704\"\n\tResolutionIdeogram1472x576  ResolutionIdeogram = \"1472x576\"\n\tResolutionIdeogram1472x640  ResolutionIdeogram = \"1472x640\"\n\tResolutionIdeogram1472x704  ResolutionIdeogram = \"1472x704\"\n\tResolutionIdeogram1536x512  ResolutionIdeogram = \"1536x512\"\n\tResolutionIdeogram1536x576  ResolutionIdeogram = \"1536x576\"\n\tResolutionIdeogram1536x640  ResolutionIdeogram = \"1536x640\"\n)\n```\n\n```go\ntype ResolutionImageGeneration string\n```\n(For model\\_version for 2.0 only, cannot be used in conjunction with aspect\\_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect\\_ratio.\n\n```go\nconst (\n\tResolutionImageGenerationResolution512_1536  ResolutionImageGeneration = \"RESOLUTION_512_1536\"\n\tResolutionImageGenerationResolution576_1408  ResolutionImageGeneration = \"RESOLUTION_576_1408\"\n\tResolutionImageGenerationResolution576_1472  ResolutionImageGeneration = \"RESOLUTION_576_1472\"\n\tResolutionImageGenerationResolution576_1536  ResolutionImageGeneration = \"RESOLUTION_576_1536\"\n\tResolutionImageGenerationResolution640_1024  ResolutionImageGeneration = \"RESOLUTION_640_1024\"\n\tResolutionImageGenerationResolution640_1344  ResolutionImageGeneration = \"RESOLUTION_640_1344\"\n\tResolutionImageGenerationResolution640_1408  ResolutionImageGeneration = \"RESOLUTION_640_1408\"\n\tResolutionImageGenerationResolution640_1472  ResolutionImageGeneration = \"RESOLUTION_640_1472\"\n\tResolutionImageGenerationResolution640_1536  ResolutionImageGeneration = \"RESOLUTION_640_1536\"\n\tResolutionImageGenerationResolution704_1152  ResolutionImageGeneration = \"RESOLUTION_704_1152\"\n\tResolutionImageGenerationResolution704_1216  ResolutionImageGeneration = \"RESOLUTION_704_1216\"\n\tResolutionImageGenerationResolution704_1280  ResolutionImageGeneration = \"RESOLUTION_704_1280\"\n\tResolutionImageGenerationResolution704_1344  ResolutionImageGeneration = \"RESOLUTION_704_1344\"\n\tResolutionImageGenerationResolution704_1408  ResolutionImageGeneration = \"RESOLUTION_704_1408\"\n\tResolutionImageGenerationResolution704_1472  ResolutionImageGeneration = \"RESOLUTION_704_1472\"\n\tResolutionImageGenerationResolution720_1280  ResolutionImageGeneration = \"RESOLUTION_720_1280\"\n\tResolutionImageGenerationResolution736_1312  ResolutionImageGeneration = \"RESOLUTION_736_1312\"\n\tResolutionImageGenerationResolution768_1024  ResolutionImageGeneration = \"RESOLUTION_768_1024\"\n\tResolutionImageGenerationResolution768_1088  ResolutionImageGeneration = \"RESOLUTION_768_1088\"\n\tResolutionImageGenerationResolution768_1152  ResolutionImageGeneration = \"RESOLUTION_768_1152\"\n\tResolutionImageGenerationResolution768_1216  ResolutionImageGeneration = \"RESOLUTION_768_1216\"\n\tResolutionImageGenerationResolution768_1232  ResolutionImageGeneration = \"RESOLUTION_768_1232\"\n\tResolutionImageGenerationResolution768_1280  ResolutionImageGeneration = \"RESOLUTION_768_1280\"\n\tResolutionImageGenerationResolution768_1344  ResolutionImageGeneration = \"RESOLUTION_768_1344\"\n\tResolutionImageGenerationResolution832_960   ResolutionImageGeneration = \"RESOLUTION_832_960\"\n\tResolutionImageGenerationResolution832_1024  ResolutionImageGeneration = \"RESOLUTION_832_1024\"\n\tResolutionImageGenerationResolution832_1088  ResolutionImageGeneration = \"RESOLUTION_832_1088\"\n\tResolutionImageGenerationResolution832_1152  ResolutionImageGeneration = \"RESOLUTION_832_1152\"\n\tResolutionImageGenerationResolution832_1216  ResolutionImageGeneration = \"RESOLUTION_832_1216\"\n\tResolutionImageGenerationResolution832_1248  ResolutionImageGeneration = \"RESOLUTION_832_1248\"\n\tResolutionImageGenerationResolution864_1152  ResolutionImageGeneration = \"RESOLUTION_864_1152\"\n\tResolutionImageGenerationResolution896_960   ResolutionImageGeneration = \"RESOLUTION_896_960\"\n\tResolutionImageGenerationResolution896_1024  ResolutionImageGeneration = \"RESOLUTION_896_1024\"\n\tResolutionImageGenerationResolution896_1088  ResolutionImageGeneration = \"RESOLUTION_896_1088\"\n\tResolutionImageGenerationResolution896_1120  ResolutionImageGeneration = \"RESOLUTION_896_1120\"\n\tResolutionImageGenerationResolution896_1152  ResolutionImageGeneration = \"RESOLUTION_896_1152\"\n\tResolutionImageGenerationResolution960_832   ResolutionImageGeneration = \"RESOLUTION_960_832\"\n\tResolutionImageGenerationResolution960_896   ResolutionImageGeneration = \"RESOLUTION_960_896\"\n\tResolutionImageGenerationResolution960_1024  ResolutionImageGeneration = \"RESOLUTION_960_1024\"\n\tResolutionImageGenerationResolution960_1088  ResolutionImageGeneration = \"RESOLUTION_960_1088\"\n\tResolutionImageGenerationResolution1024_640  ResolutionImageGeneration = \"RESOLUTION_1024_640\"\n\tResolutionImageGenerationResolution1024_768  ResolutionImageGeneration = \"RESOLUTION_1024_768\"\n\tResolutionImageGenerationResolution1024_832  ResolutionImageGeneration = \"RESOLUTION_1024_832\"\n\tResolutionImageGenerationResolution1024_896  ResolutionImageGeneration = \"RESOLUTION_1024_896\"\n\tResolutionImageGenerationResolution1024_960  ResolutionImageGeneration = \"RESOLUTION_1024_960\"\n\tResolutionImageGenerationResolution1024_1024 ResolutionImageGeneration = \"RESOLUTION_1024_1024\"\n\tResolutionImageGenerationResolution1088_768  ResolutionImageGeneration = \"RESOLUTION_1088_768\"\n\tResolutionImageGenerationResolution1088_832  ResolutionImageGeneration = \"RESOLUTION_1088_832\"\n\tResolutionImageGenerationResolution1088_896  ResolutionImageGeneration = \"RESOLUTION_1088_896\"\n\tResolutionImageGenerationResolution1088_960  ResolutionImageGeneration = \"RESOLUTION_1088_960\"\n\tResolutionImageGenerationResolution1120_896  ResolutionImageGeneration = \"RESOLUTION_1120_896\"\n\tResolutionImageGenerationResolution1152_704  ResolutionImageGeneration = \"RESOLUTION_1152_704\"\n\tResolutionImageGenerationResolution1152_768  ResolutionImageGeneration = \"RESOLUTION_1152_768\"\n\tResolutionImageGenerationResolution1152_832  ResolutionImageGeneration = \"RESOLUTION_1152_832\"\n\tResolutionImageGenerationResolution1152_864  ResolutionImageGeneration = \"RESOLUTION_1152_864\"\n\tResolutionImageGenerationResolution1152_896  ResolutionImageGeneration = \"RESOLUTION_1152_896\"\n\tResolutionImageGenerationResolution1216_704  ResolutionImageGeneration = \"RESOLUTION_1216_704\"\n\tResolutionImageGenerationResolution1216_768  ResolutionImageGeneration = \"RESOLUTION_1216_768\"\n\tResolutionImageGenerationResolution1216_832  ResolutionImageGeneration = \"RESOLUTION_1216_832\"\n\tResolutionImageGenerationResolution1232_768  ResolutionImageGeneration = \"RESOLUTION_1232_768\"\n\tResolutionImageGenerationResolution1248_832  ResolutionImageGeneration = \"RESOLUTION_1248_832\"\n\tResolutionImageGenerationResolution1280_704  ResolutionImageGeneration = \"RESOLUTION_1280_704\"\n\tResolutionImageGenerationResolution1280_720  ResolutionImageGeneration = \"RESOLUTION_1280_720\"\n\tResolutionImageGenerationResolution1280_768  ResolutionImageGeneration = \"RESOLUTION_1280_768\"\n\tResolutionImageGenerationResolution1280_800  ResolutionImageGeneration = \"RESOLUTION_1280_800\"\n\tResolutionImageGenerationResolution1312_736  ResolutionImageGeneration = \"RESOLUTION_1312_736\"\n\tResolutionImageGenerationResolution1344_640  ResolutionImageGeneration = \"RESOLUTION_1344_640\"\n\tResolutionImageGenerationResolution1344_704  ResolutionImageGeneration = \"RESOLUTION_1344_704\"\n\tResolutionImageGenerationResolution1344_768  ResolutionImageGeneration = \"RESOLUTION_1344_768\"\n\tResolutionImageGenerationResolution1408_576  ResolutionImageGeneration = \"RESOLUTION_1408_576\"\n\tResolutionImageGenerationResolution1408_640  ResolutionImageGeneration = \"RESOLUTION_1408_640\"\n\tResolutionImageGenerationResolution1408_704  ResolutionImageGeneration = \"RESOLUTION_1408_704\"\n\tResolutionImageGenerationResolution1472_576  ResolutionImageGeneration = \"RESOLUTION_1472_576\"\n\tResolutionImageGenerationResolution1472_640  ResolutionImageGeneration = \"RESOLUTION_1472_640\"\n\tResolutionImageGenerationResolution1472_704  ResolutionImageGeneration = \"RESOLUTION_1472_704\"\n\tResolutionImageGenerationResolution1536_512  ResolutionImageGeneration = \"RESOLUTION_1536_512\"\n\tResolutionImageGenerationResolution1536_576  ResolutionImageGeneration = \"RESOLUTION_1536_576\"\n\tResolutionImageGenerationResolution1536_640  ResolutionImageGeneration = \"RESOLUTION_1536_640\"\n)\n```\n\n```go\ntype StyleTypeV2AndAbove string\n```\nThe style type to generate with; this is only applicable for models V\\_2 and above and should not be specified for model versions V\\_1.\n\n```go\nconst (\n\tStyleTypeV2AndAboveAuto      StyleTypeV2AndAbove = \"AUTO\"\n\tStyleTypeV2AndAboveGeneral   StyleTypeV2AndAbove = \"GENERAL\"\n\tStyleTypeV2AndAboveRealistic StyleTypeV2AndAbove = \"REALISTIC\"\n\tStyleTypeV2AndAboveDesign    StyleTypeV2AndAbove = \"DESIGN\"\n\tStyleTypeV2AndAboveRender3D  StyleTypeV2AndAbove = \"RENDER_3D\"\n\tStyleTypeV2AndAboveAnime     StyleTypeV2AndAbove = \"ANIME\"\n\tStyleTypeV2AndAboveCustom    StyleTypeV2AndAbove = \"CUSTOM\"\n)\n```\n\n```go\ntype StyleTypeV3 string\n```\nThe style type to generate with.\n\n```go\nconst (\n\tStyleTypeV3Auto      StyleTypeV3 = \"AUTO\"\n\tStyleTypeV3General   StyleTypeV3 = \"GENERAL\"\n\tStyleTypeV3Realistic StyleTypeV3 = \"REALISTIC\"\n\tStyleTypeV3Design    StyleTypeV3 = \"DESIGN\"\n)\n```\n\n```go\ntype UpscaleNewParams struct {\n\t// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported\n\t// at this time.\n\tImageFile io.Reader `json:\"image_file,omitzero,required\" format:\"binary\"`\n\t// A request to upscale a provided image with the help of an optional prompt.\n\tImageRequest UpscaleNewParamsImageRequest `json:\"image_request,omitzero,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UpscaleNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype UpscaleNewParamsImageRequest struct {\n\tDetail param.Opt[int64] `json:\"detail,omitzero\"`\n\t// The number of images to generate.\n\tNumImages param.Opt[int64] `json:\"num_images,omitzero\"`\n\t// An optional prompt to guide the upscale\n\tPrompt      param.Opt[string] `json:\"prompt,omitzero\"`\n\tResemblance param.Opt[int64]  `json:\"resemblance,omitzero\"`\n\t// Random seed. Set for reproducible generation.\n\tSeed param.Opt[int64] `json:\"seed,omitzero\"`\n\t// Determine if MagicPrompt should be used in generating the request or not.\n\t//\n\t// Any of \"AUTO\", \"ON\", \"OFF\".\n\tMagicPromptOption MagicPromptOption `json:\"magic_prompt_option,omitzero\"`\n\t// The magic prompt version to use when magic prompt option is set to AUTO or ON.\n\t//\n\t// Any of \"V_0\", \"V_0_1\", \"V_0_2\".\n\tMagicPromptVersion MagicPromptVersionEnum `json:\"magic_prompt_version,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA request to upscale a provided image with the help of an optional prompt.\n\n```go\nfunc (r UpscaleNewParamsImageRequest) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpscaleNewParamsImageRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpscaleService struct {\n\tOptions []option.RequestOption\n}\n```\nUpscaleService contains methods and other services that help with interacting with the ideogram-sdk API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewUpscaleService](#NewUpscaleService) method instead.\n\n```go\nfunc NewUpscaleService(opts ...option.RequestOption) (r UpscaleService)\n```\nNewUpscaleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *UpscaleService) New(ctx context.Context, body UpscaleNewParams, opts ...option.RequestOption) (res *GenerateImage, err error)\n```\nUpscale provided images synchronously with an optional prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n\n","path":"github.com/NeuralNetLab/ideogram-sdk-go","name":"ideogramsdk","synopsis":"","isRedistributable":true}
