Gpt image 2 5

From AceDataCloud/Skills · View interactive version

Gpt image 2 5 is an AI agent skill from the GitHub repository AceDataCloud/Skills. Generate or edit GPT Image 2.5 and 2.6 images through Ace Data Cloud using Flare or Sunburst, including reverse and official variants. Use for image generation, reference-image editing, 2.6 animated GIFs and annotation-guided static edits.

How to use this skill

Skill file

GPT Image by Ace Data Cloud

Requires ACEDATACLOUD_API_TOKEN in the agent process environment and HTTPS access to api.acedata.cloud. See README.md for installation and key setup.

Use one exact model ID for every request:

Do not send gpt-image-2.5 or gpt-image-2.5:reverse; they are not model IDs. To explicitly select a reverse variant, replace model in Generate or Edit with the complete :reverse alias above; preserve the suffix. Both aliases support generation JSON, URL-edit JSON and multipart file edits with the same parameter limits as their unsuffixed names.

Install and connect from skills.sh

This integration is maintained by Ace Data Cloud; it is not an official GPT Image publisher listing. Install only this Skill with npx skills add acedatacloud/skills --skill gpt-image-2-5 --yes, or use the public skills.sh page. Keep the slug gpt-image-2-5 when selecting it.

Read the illustrated first-run guide (简体中文) for registration, Applications → General application, API key access and price checks, and the environment variable location for your coding agent. For skills.sh installations, use this guide; any ClawHub-specific setup applies only to OpenClaw. The shared references linked here are online because focused installs do not include sibling _shared/ folders.

Setup: See authentication for token setup.

Regional catalog check

Before recommending GPT Image, inspect the OpenAI service's current public image_unavailable_regions and the image API/guide unavailable_regions from the caller's environment. The service record is available at GET https://platform.acedata.cloud/api/v1/services/?id=06f2acb7-e4d4-43de-9909-76e27b4e2355.

Mainland-China catalog views hide OpenAI image generation/editing and companion guides. Raw REST results may still contain marked rows; honor the metadata rather than treating presence as publication. Visibility follows the requesting visitor's IP, not the display language or a ?country= override. Do not recommend region-hidden images from a cached global catalog or hide unrelated OpenAI capabilities. This presentation filtering does not change API routing or billing and is not proof of retirement or revoked API access. For a user-selected model, report any discovery limitation and check actual account access, key restrictions and pricing before submitting; do not silently substitute another model.

Generate

curl -X POST https://api.acedata.cloud/openai/images/generations \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2.5-flare","prompt":"A clean product photograph on a pale studio background, no text","size":"1024x1024","n":1}'

Edit

curl -X POST https://api.acedata.cloud/openai/images/edits \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -F "model=gpt-image-2.5-sunburst:reverse" \
  -F "prompt=Keep the subject and composition; change only the background to dark navy." \
  -F "image=@input.png" \
  -F "size=1024x1024" \
  -F "n=1"

The result is in data[].url.

Shared contract

For 2.6, use the complete Flare/Sunburst ID; gpt-image-2.6 is not valid. No cross-model fallback is configured for 2.6. Static generation and editing support PNG/JPEG/WebP, including 4K 3840x2160 or 2160x3840; pass concrete pixels, not size: "4K". 4096x4096 exceeds the pixel limit. SVG is not exposed. Official 2.6 variants use the same token rates as 2.5.

Animated GIF (GPT Image 2.6)

GIF generation and editing support gpt-image-2.6-flare, gpt-image-2.6-flare:reverse, gpt-image-2.6-flare:official, gpt-image-2.6-sunburst, gpt-image-2.6-sunburst:reverse, and gpt-image-2.6-sunburst:official. Do not silently change the requested model.

Set output_format: "gif" in generation JSON, URL-edit JSON, or multipart file edits. GIF defaults to a 512x512 preview, frame_count: 9, and frame_duration_ms: 200; omitted size or size: "auto" uses the GIF preview default. The returned GIF can have different actual dimensions. GIF frame counts must be integers from 2 to 16. Frame duration must be an integer from 20 to 655350 ms, rounded to the nearest 10ms when encoded. Frame controls apply only to GIF. Native animation, frame timing, and looping are preserved in both URL and Base64 output. Static 4K sizes do not apply to GIF.

{"model":"gpt-image-2.6-flare","prompt":"A red ball bouncing in a seamless loop","output_format":"gif","size":"512x512","frame_count":9,"frame_duration_ms":200,"n":1,"async":true}

For image-to-GIF, send the same GIF controls to /openai/images/edits with image and a prompt describing the motion and what to preserve. Use an image URL in JSON or -F "image=@input.png" with multipart; pass GIF controls as form fields for multipart.

Keep the original task ID and poll it to completion; do not resubmit a pending job. n counts returned GIF files, not animation frames. The normal per-successful-file or official token billing for the requested model still applies; inspect actual usage for the final charge.

Do not combine GIF with mask, markup, output_compression, prompt_rewriter or partial-image streaming. Incompatible combinations are rejected before generation. Size, frame count and n share a model pixel budget: ordinary Flare has a verified 1024x1024, 2-frame combination, not blanket support for every 1K combination or 4K GIF. Start with the recommended 512x512, 9-frame, 200ms settings.

Planning complexity (GPT Image 2.6 only)

For generation or editing, pass complexity: "low", "medium" or "high" in JSON, or -F "complexity=medium" in multipart. Omission uses the model default high. Complexity controls composition planning independently of rendering quality; it has no separate per-request surcharge, while official variants still bill actual token usage. Do not send it to other models.

Annotation-guided static editing (GPT Image 2.6 only)

  1. Prepare a PNG annotation layer with transparent pixels and the same dimensions as the first reference image after orientation correction. Mark the areas to change and explain the intended changes in prompt. Each image must be at most 16,777,216 pixels; the annotation must be at most 40MB.
  2. Submit image, prompt and markup to /openai/images/edits with the user's exact 2.6 model. JSON markup accepts an HTTPS URL, PNG base64 data URL or an object containing only image_url; multipart accepts an annotation file or HTTPS URL. file_id is not supported.
  3. Use static PNG/JPEG/WebP output. Do not combine markup with mask, GIF or prompt_rewriter. Omit input_fidelity for GPT Image 2.6; it is not applicable.
  4. Poll the same task ID to its terminal result and use the returned media URL.
curl -X POST https://api.acedata.cloud/openai/images/edits \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -F "model=gpt-image-2.6-sunburst:reverse" \
  -F "image=@input.png" \
  -F "markup=@annotation.png" \
  -F "prompt=Change only the circled background area to dark navy; preserve the subject." \
  -F "output_format=png" \
  -F "complexity=medium" \
  -F "n=1" \
  -F "async=true"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.