Skip to content

docs(openrouter-images): sync with openrouter-web changes - #211

Open
devin-ai-integration[bot] wants to merge 6 commits into
mainfrom
devin/1793898187-update-openrouter-images
Open

devin-ai-integration[bot] wants to merge 6 commits into
mainfrom
devin/1793898187-update-openrouter-images

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The image API now accepts gif in output_format (animation output on OpenAI gpt-image-2.6, in the public catalog as openai/gpt-image-2.6-flare and -sunburst), plus frame_count (2–64) and frame_duration_ms (20–2000) request fields. Both frame controls are forwarded on generations and on edits.

  • --output-format now lists gif.
  • New --frame-count and --frame-duration-ms flags, mapped in buildImageParams (lib.ts) to frame_count and frame_duration_ms. The generate.ts and edit.ts usage text includes them. saveImage already maps image/gif to .gif.
  • Not covered: the new markup overlay field for gpt-image-2.6 edits. Supporting it needs a second image input in edit.ts.

Seedream layer decomposition

Seedream can now return a base image plus separate layers when provider.options.seed.layer_decomposition: true is sent with layer_decomposition_options.max_images (2–16; n must be 1, no aspect_ratio or explicit WIDTHxHEIGHT size). Each data[i] then carries a new layer object (z_index, name, description, background, bounding_box.{absolute,normalized}, optional text_recognition).

  • New "Layer decomposition (Seedream)" section in SKILL.md with the --provider-options example and the layer fields.
  • generate.ts now adds a layers array (each with its saved file) to its JSON output when the response includes layer metadata; lib.ts response type gains layer.

Signed URLs (response_format: "url")

response_format is now public: url returns a signed download link per image (data[].url, top-level expires_at, up to 24 hours) instead of base64, falling back to b64_json for streaming, ZDR, or storage errors. Adds a short section with the response shape, the bearer-link caveat, and the billing note. Scripts still use the default b64_json.

Update (11-22)

  • GET /api/v1/images/models now lists :free variants as their own entries.
  • Billing errors: 402 openrouter_in_flight_budget (retry after Retry-After) / openrouter_credits, 403 openrouter_key_limit; image requests are held against the in-flight spending budget.

🟢 Devin Review found nothing to fix · View findings

Devin Review

Update (11-25)

  • input_references: models advertise supported_parameters.input_references {min, max} (up to 16; min: 1 = edit-only model); jq recipe to list them; no bbox placement on reference entries.
  • Recraft V3 text_layout under provider.options.recraft (text + four fractional [x, y] corner points) with a --provider-options example.
@devin-ai-integration

devin-ai-integration Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… text_layout

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

0 participants