any2i_create_task
ChatGPTCreate an image-generation task (credits charged) and return job_id immediately. Available to accounts with an active membership; for other accounts no task is created and no credits are used. Omit image_urls for text-to-image; pass it for image-to-image. The count must be within the model min_image_count~max_image_count range. prompt is required. After submission, poll any2i_get_task for the result.
any2i_get_options
ChatGPTAfter selecting a model and quality, return the credit cost, input-image count requirements, and crop specification. Omitted parameters use model defaults. Tell the user the credit cost and obtain confirmation before submitting. Image-generation credits depend only on quality, not ratio, image count, or prompt length.
any2i_get_task
ChatGPTGet image-generation task status. When job_status is success, image_urls contains the finished image URLs; when fail, job_reason contains the failure reason; other values mean queued or processing and require more polling.
any2i_list_models
ChatGPTList image-generation models and their supported quality, aspect ratios, and input-image count range. Include prompt-length limits and credit costs for each quality. The same tools cover text-to-image and image-to-image; whether a model accepts input images and how many is determined by its min_image_count / max_image_count.
create_upload_url
ChatGPTIssue a generic file upload URL. After receiving upload_url, use multipart/form-data POST to upload the file directly (form field: file). The upstream response returns the complete file URL in d. Uploaded files are stored temporarily and cleaned periodically; use the URL promptly.
get_user_profile
ChatGPTFetch the current signed-in user profile, including basic information, credit balance, membership status, and membership expiration time.
i2v_create_task
ChatGPTCreate an image-to-video task from uploaded image URLs, charge the selected credits, and return task_id immediately. Available to accounts with an active membership; for other accounts no task is created and no credits are used. Pass one image for image-to-video or two in [first frame, last frame] order for fixed endpoints, and crop both to the same concrete ratio; prompt is optional. Optional ratio, quality, duration, mode, audio, and movement_amplitude must use values returned by i2v_list_models or i2v_get_options; omitted values fall back to the model defaults. Only submit images the user owns or has permission to use, and do not animate real people without their consent. After submission, poll i2v_get_task for the result.
i2v_get_options
ChatGPTAfter selecting a model and parameters, return the credit cost and target image ratio and pixel dimensions. Omitted parameters use model defaults. Tell the user the credit cost and obtain confirmation before submitting. Cropping must be done locally (for example with ffmpeg or sips); this service does not accept image binaries.
i2v_get_task
ChatGPTGet image-to-video/fixed-endpoint video task status. When task_status is success, video_url is the finished video URL; when fail, task_reason contains the failure reason; other values mean queued or processing and require more polling.
i2v_list_models
ChatGPTList image-to-video models and their supported quality, duration, generation modes, and aspect ratios. Include movement amplitudes, image-count limits, prompt-length limits, and credit costs for each parameter combination. Set end_frame=true to return only models supporting fixed first-to-last frames.
t2v_create_task
ChatGPTCreate a text-to-video task from a prompt, charge the selected credits, and return task_id immediately. Available to accounts with an active membership; for other accounts no task is created and no credits are used. No input images or pre-uploaded media are required. prompt is required, and ratio must be a concrete aspect ratio rather than free. After submission, poll t2v_get_task for the result.
t2v_get_options
ChatGPTAfter selecting a model and parameters, return the credit cost and final effective values. Omitted parameters use model defaults. Tell the user the credit cost and obtain confirmation before submitting. Text-to-video has no input images, so ratio must be a concrete aspect ratio rather than free.
t2v_get_task
ChatGPTGet text-to-video task status. When task_status is success, video_url is the finished video URL; when fail, task_reason contains the failure reason; other values mean queued or processing and require more polling.
t2v_list_models
ChatGPTList text-to-video models and their supported quality, duration, generation modes, and aspect ratios. Include movement amplitudes, prompt-length limits, and credit costs for each parameter combination. Text-to-video uses only a prompt; no input images, cropping, or upload step is required.