Download the PHP package spora-ai/spora-plugin-openai-image without Composer
On this page you can find all versions of the php package spora-ai/spora-plugin-openai-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spora-ai/spora-plugin-openai-image
More information about spora-ai/spora-plugin-openai-image
Files in spora-ai/spora-plugin-openai-image
Package spora-plugin-openai-image
Short Description OpenAI-compatible image generation for Spora agents.
License MIT
Informations about the package spora-plugin-openai-image
OpenAI Image Plugin
This plugin provides the image_openai tool using the OpenAI Image API contract. Configure api_key, base_url, and model per agent so compatible providers can be used without code changes.
Generated base64 images are ingested into Spora's Media Archive when available. If the archive is unavailable or ingestion fails, the tool returns a data URL fallback.
The tool exposes two operations:
generate— single image from a text prompt. CallsPOST {base_url}/images/generations. The expected response shape isdata[].b64_json.-
generate_variations— multiple images (default 3, max 8), or semantic variations of an existing image. Approval-gated by default.- Prompt-based (default):
POST {base_url}/images/generationswithnindependent samples from the same prompt. - Image-based (
input_imagesupplied):POST {base_url}/images/variations(multipart upload).input_imageaccepts an http(s) URL, adata:URI, a 36-char Media Archive UUID, or an opaque/api/v1/assets/<uuid>.<ext>URL. The plugin resolves Media Archive references server-side so the bytes never enter the chat context.
- Prompt-based (default):
All versions of spora-plugin-openai-image with dependencies
spora-ai/spora-core Version >=0.23.0 <2.0.0 || @dev
symfony/event-dispatcher Version ^8.0