# GPT Image 2.6 Generator: Images, GIF & SVG (`superlewis/gpt-image-2-6-generator-images-gif-svg`) Actor

Generate and edit images with GPT Image 2.6 in 1K, 2K or 4K, plus animated GIFs and SVG vectors. Bulk prompts, up to 8 reference images, files as URLs. Pay per image on Apify, or use your own apimodels.app API key. Failed generations are not charged.

- **URL**: https://apify.com/superlewis/gpt-image-2-6-generator-images-gif-svg.md
- **Developed by:** [Lucas Lewis](https://apify.com/superlewis) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 1k image, medium qualities

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GPT Image 2.6 generator: images, animated GIF and SVG

Generate and edit images with **GPT Image 2.6** from a list of prompts. You can get 1K, 2K or 4K images, **looping GIF animations** and **editable SVG vector files**, and edit or combine up to 8 reference images. Each file comes back as a URL in a dataset, ready for automation, bulk jobs and AI agents.

The Actor runs on the [apimodels.app image API](https://apimodels.app/docs/gpt-image-2-6?utm_source=apify\&utm_medium=referral), which keeps several upstream channels behind GPT Image 2.6 with automatic failover.

### What you can make

- **Images** in PNG, JPEG or WebP, at 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 or 21:9, in 1K, 2K or 4K.
- **Edits**: add reference image URLs and describe the change. For example, replace the background, put a product on a kitchen table, restyle a photo or merge two pictures.
- **Animated GIFs**: 2 to 9 frames, sized automatically for the aspect ratio. A solid green background is turned transparent automatically.
- **SVG vectors**: logos, icons and flat illustrations that you can edit in Figma or Illustrator. These are text-to-image only.
- **Bulk runs**: up to 100 prompts per run, 1 to 4 images per prompt.

### Pricing

You pay only for files that are delivered. **Failed generations are never charged.**

**Pay per image on Apify** (paid Apify plans, no API key needed):

| Quality | 1K | 2K | 4K |
|---|---|---|---|
| Low | $0.013 | $0.038 | $0.038 |
| Medium | $0.025 | $0.044 | $0.057 |
| High | $0.038 | $0.057 | $0.10 |

| Format | Price |
|---|---|
| Animated GIF (up to 9 frames) | $0.12 per GIF |
| SVG vector | $0.04 per file |

**Or use your own apimodels.app API key.** Create a key at [apimodels.app](https://apimodels.app/console/api-keys?utm_source=apify\&utm_medium=referral) and paste it into the input. Files are then billed to your apimodels.app balance at [apimodels.app prices](https://apimodels.app/models/gpt-image-2.6-flare?utm_source=apify\&utm_medium=referral), and nothing is charged on Apify. **On the Apify free plan an API key is required.**

### How to use

1. Enter one or more prompts.
2. Pick the output format, aspect ratio, resolution and quality.
3. Optional: add reference image URLs to edit or combine images.
4. Optional: paste your apimodels.app API key.
5. Start the run. Files appear in the **Output** tab as they finish.

### Output

Each generated file is one dataset item:

```json
{
  "ok": true,
  "imageUrl": "https://r2.apimodels.app/...png",
  "prompt": "A cozy corner coffee shop at dusk...",
  "promptIndex": 0,
  "imageIndex": 0,
  "model": "gpt-image-2.6-flare",
  "outputFormat": "png",
  "aspectRatio": "16:9",
  "resolution": "1K",
  "quality": "medium",
  "billing": "apify",
  "taskId": "..."
}
```

If a prompt fails, its item has `"ok": false` and an `error` message. It is not charged.

### Things to know

- Result URLs are kept for **30 days**. Download what you want to keep.
- Use the **Maximum cost per run** setting to cap spending. The Actor stops before it goes over the cap.
- The content policy of the underlying model applies, so some prompts may be refused. Refused prompts are not charged.
- GIF and SVG produce one file per prompt. SVG does not take reference images.

### Call the API directly

The same model is available from your own code with one API key:

```bash
curl https://api.apimodels.app/v1/images/generations \
  -H "Authorization: Bearer $APIMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-image-2.6-flare", "prompt": "a red fox in fresh snow", "aspect_ratio": "16:9", "resolution": "1K", "quality": "medium"}'
```

Docs: [apimodels.app/docs/gpt-image-2-6](https://apimodels.app/docs/gpt-image-2-6?utm_source=apify\&utm_medium=referral).

### About apimodels.app

[apimodels.app](https://apimodels.app/?utm_source=apify\&utm_medium=referral) gives you one API key for 170+ AI models: LLMs, image, video and audio generation. Popular models run on several upstream channels with automatic failover, and failed requests are never charged.

This Actor is not affiliated with or endorsed by OpenAI.

# Actor input Schema

## `prompts` (type: `array`):

One generation per prompt (up to 100 per run). Describe the image; for edits, describe the change you want to the reference images.

## `outputFormat` (type: `string`):

PNG, JPEG or WebP image; GIF for a short looping animation; SVG for an editable vector file (text-to-image only).

## `aspectRatio` (type: `string`):

Shape of the output: 16:9 landscape, 9:16 vertical, 1:1 square, and more.

## `resolution` (type: `string`):

1K (about 1 MP, e.g. 1360x768 at 16:9), 2K (e.g. 2736x1536) or 4K (e.g. 3840x2160). Not used for GIF.

## `quality` (type: `string`):

Higher quality gives more detail and better text rendering, at a higher price per image.

## `numImages` (type: `integer`):

1 to 4. GIF and SVG always produce one file per prompt.

## `referenceImageUrls` (type: `array`):

Up to 8 public image URLs. With references, the prompt edits or combines them (e.g. change the background, put the product on a table, merge two photos). Not available for SVG.

## `frameCount` (type: `integer`):

Number of animation frames for GIF output (2 to 9).

## `apiKey` (type: `string`):

Leave empty on a paid Apify plan to pay per image on Apify. Required on the Apify free plan: create a key at https://apimodels.app/console/api-keys and images are billed to your apimodels.app balance instead (nothing is charged on Apify).

## Actor input object example

```json
{
  "prompts": [
    "A cozy corner coffee shop at dusk, warm light spilling onto a rain-soaked street, a hand-painted sign reading \"OPEN LATE\", cinematic photo"
  ],
  "outputFormat": "png",
  "aspectRatio": "16:9",
  "resolution": "1K",
  "quality": "medium",
  "numImages": 1,
  "frameCount": 6
}
```

# Actor output Schema

## `results` (type: `string`):

Generated files with their URLs (kept for 30 days), prompts and settings, plus an error message for prompts that failed.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompts": [
        "A cozy corner coffee shop at dusk, warm light spilling onto a rain-soaked street, a hand-painted sign reading \"OPEN LATE\", cinematic photo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("superlewis/gpt-image-2-6-generator-images-gif-svg").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "prompts": ["A cozy corner coffee shop at dusk, warm light spilling onto a rain-soaked street, a hand-painted sign reading \"OPEN LATE\", cinematic photo"] }

# Run the Actor and wait for it to finish
run = client.actor("superlewis/gpt-image-2-6-generator-images-gif-svg").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompts": [
    "A cozy corner coffee shop at dusk, warm light spilling onto a rain-soaked street, a hand-painted sign reading \\"OPEN LATE\\", cinematic photo"
  ]
}' |
apify call superlewis/gpt-image-2-6-generator-images-gif-svg --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superlewis/gpt-image-2-6-generator-images-gif-svg"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4y68Q5GQ68hUTe9gr/builds/KYdZqex5sD0BYDUQE/openapi.json
