HiAPI
  • Models
  • Pricing
Search

Search HiAPI models, tools, and resources.

  • Models
  • Pricing
HiAPI

One API, All AI Models

Generate images, video, and audio with leading models through one production-ready API.

Get a free API key

AI Image API

  • All image models
  • GPT Image 2.5 Flare
  • GPT Image 2.5 Sunburst
  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0 Pro
  • Qwen Image 2.0 Pro
  • FLUX 1.1 Pro

AI Video API

  • All video models
  • Seedance 2.5
  • FLUX.3 Video
  • Seedance 2.0
  • Veo 3.1
  • Kling 3.0 Omni

AI Audio API

  • All audio models
  • MiniMax Music 2.6
  • MiniMax Music 1.5
  • ElevenLabs v3
  • Text to music
  • Text to speech

Product

  • Model marketplace
  • Playground
  • Pricing
  • Image API Cost Calculator
  • Free GPT Image 2 Generator
  • Free Background Remover
  • Free Nano Banana Image Generator
  • Outfit Preview
  • Product Photo Lab

Developers

  • Agent setup
  • Documentation
  • API Reference
  • Agent Skills
  • LLM integration index
  • Blog

Company

  • About
  • Contact support
  • Terms of Service
  • Privacy Policy

© 2026 hiapi. All rights reserved.

Open source on GitHubPython SDK on PyPI
  • Import the template and connect your credential
  • For the first run, change only the prompt
  • Find resultUrl in Final Output
  • If there is no image, check how the run ended
TutorialSep 21, 20265 min read

GPT Image 2 / 2.5 with n8n: The request worked. Where is the image?

An importable workflow for submitting a prompt, waiting, and collecting the result.

hiapiGPT Image 2GPT Image 2.5n8nAPI

Latest models

Explore models

Contents
  • Import the template and connect your credential
  • For the first run, change only the prompt
  • Find resultUrl in Final Output
  • If there is no image, check how the run ended

Generate it with HiAPI

Choose a model, enter your prompt, and see the result.

HiAPI Blog

Related articles

HiAPI

Generate it with HiAPI

Turning a prompt into an image URL takes two steps in n8n: submit a task, then check its progress. Submission returns a task ID. Once generation finishes, querying that ID returns the image address.

This workflow handles that waiting step: submit once, pause, check the same task, and continue until an image URL or failure arrives. Import it, connect your credential, and enter a prompt to run the workflow.

n8n image workflow: submit a task, wait and check, then return the image URL

Import the template and connect your credential

Download the n8n workflow JSON and import it into your n8n instance.

The default is GPT Image 2.5 Flare text-to-image at 1:1 and 1K. See the GPT Image 2.5 Flare page for the model entry and current information. Before running it, connect your API key:

  1. Open Credentials and create a Header Auth credential.
  2. Set Name to Authorization. Set Value to Bearer YOUR_API_KEY, replacing the placeholder with your key. Keep the space after Bearer.
  3. Save it, then select that credential in both Submit Task and Get Task.

Both nodes need it: one submits the request and the other checks the task. Store the key in Credentials and reference that credential from both request nodes.

For the first run, change only the prompt

Open Workflow Input and find prompt. The template starts with a product image of an orange retro handheld console. You can use this prompt:

A clean product photo of an orange retro handheld game console on a warm
ivory studio surface, no text, no watermark.

Keep the other defaults and click Execute Workflow. The template checks every five seconds, up to 36 checks. While it is waiting, open the execution data to follow the task status.

To use GPT Image 2, change model to gpt-image-2/text-to-image. The default 2.5 value is gpt-image-2.5-flare/text-to-image. Both text-to-image entries use the template's prompt, aspect_ratio, and resolution fields.

Find resultUrl in Final Output

When the workflow reaches Final Output, open its data. On success, copy resultUrl into a browser to see the image, or pass the value to a storage or content node.

Keep taskId too. It identifies this generation if you need to check it later. The template collects the result URL; downloading or storing the file is a separate step you can connect afterward.

If there is no image, check how the run ended

A fail status comes from the service. Read error in Final Output and address the reported input or account issue before deciding whether to generate again.

A timeout means the template reached its polling limit. The remote task may still be running. Keep its taskId and create another HTTP Request node to check it: choose GET, use https://api.hiapi.ai/v1/tasks/YOUR_TASK_ID, replace the final placeholder, and select the same Header Auth credential. This GET request returns the existing task’s latest status.

If an HTTP Request node fails before Final Output, inspect that node's response. For 401/403, check authentication and permissions; for 400, check the input; for 429, check rate limiting; for 5xx, read the service error. After a network error during submission, establish whether a task was created before submitting again.

To make an image in the browser before connecting automation, follow the GPT Image 2.5 tutorial.

Latest models

View all models
  • GPT Image 2.5 FlareFrom $0.050/image
  • GPT Image 2.5 SunburstFrom $0.050/image
  • GPT Image 2From $0.030/image
  • Nano Banana 2From $0.051/image

Explore models

TextImageVideoAudio
Back to blog
GPT Image 2.5 FlareFrom $0.050/image
GPT Image 2.5 SunburstFrom $0.050/image
GPT Image 2From $0.030/image
Nano Banana 2From $0.051/image
View all models
TextChat and reasoning
ImageGenerate and edit
VideoText and image to video
AudioSpeech and music
Start generating
View model pricing
View all articles
How to Use Claude Opus 4.8 via the hiapi API

How to Use Claude Opus 4.8 via the hiapi API

FLUX.2 Text-to-Image API: Parameters, Code, and a Working Example

FLUX.2 Text-to-Image API: Parameters, Code, and a Working Example

How to Use the Nano Banana 2 API: A Complete Tutorial

How to Use the Nano Banana 2 API: A Complete Tutorial

How to Use glm-5.3 via the hiapi API: curl, Python, and a Working Request

How to Use glm-5.3 via the hiapi API: curl, Python, and a Working Request

How to Use Claude Sonnet 4.6 via the hiapi API

How to Use Claude Sonnet 4.6 via the hiapi API

How to Use kimi-k3 via the hiapi API: curl, Python, and a Working Request

How to Use kimi-k3 via the hiapi API: curl, Python, and a Working Request

Start generating