Text to image,
in one API call.
NyxForge is a hosted, OpenAI-compatible image generation API powered by gpt-image2. Change one line — your base_url — and turn prompts into high-quality images in just a few lines of code. Pay-as-you-go, no subscription, no monthly fee.
Three steps to your first image
If you already call the OpenAI image API, you're basically done — just swap the base URL.
curl https://api.nyxforge.dev/v1/images/generations \ -H "Authorization: Bearer $NYXFORGE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-image2","prompt":"a cyberpunk cat running through a neon city, cinematic, 8k","size":"1024x1024"}'
from openai import OpenAI client = OpenAI( api_key="$NYXFORGE_API_KEY", base_url="https://api.nyxforge.dev/v1", ) img = client.images.generate( model="gpt-image2", prompt="a cyberpunk cat running through a neon city, cinematic, 8k", size="1024x1024", ) print(img.data[0].url)
import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.NYXFORGE_API_KEY, baseURL: "https://api.nyxforge.dev/v1", }); const img = await client.images.generate({ model: "gpt-image2", prompt: "a cyberpunk cat running through a neon city, cinematic, 8k", size: "1024x1024", }); console.log(img.data[0].url);
1 · Get an API key
Sign up at nyxforge.dev and create a key from your dashboard. Top up a balance and you're ready to call.
2 · Point base_url to NyxForge
Keep your existing OpenAI SDK. Change only the base URL and your API key — no other code changes required.
3 · Call /v1/images/generations
Send a prompt, get a high-quality image back. Track usage and balance in real time from your dashboard.
Built for image generation
A focused image API with nothing to learn and nothing to lock you in — bring the OpenAI client you already use.
OpenAI-compatible
No code changes — just point base_url to NyxForge and call it with the official OpenAI SDKs or plain HTTP.
Pay as you go
Pay for what you use, track usage and balance in real time. No subscription, no monthly fee, no minimum commitment.
Enterprise-grade foundation
Built on an enterprise-grade AI cloud and the proven open-source New API gateway — stable and ready to scale.
Real-time usage & balance
A dashboard shows requests, spend, and remaining balance as they happen — no surprise invoices at the end of the month.
High-quality output
gpt-image2 produces crisp, prompt-faithful images with control over size and format — straight from a single REST call.
Works with your stack
Use it from Python, Node.js, Go, or any HTTP client. If it speaks the OpenAI image API, it speaks NyxForge.
Who it's for
Anywhere you need images generated programmatically, without standing up your own model infrastructure.
Product & app builders
Add image generation to your SaaS, bot, or mobile app in an afternoon, with billing you can predict per request.
Automation & content pipelines
Generate thumbnails, covers, marketing assets, and variations in batch from scripts, cron jobs, or workflow tools.
Prototyping & experiments
Spin up a quick proof-of-concept without a subscription. Pay a few cents, validate the idea, then scale up if it works.
Frequently asked
How is NyxForge different from calling OpenAI directly?
NyxForge is a hosted gateway that exposes gpt-image2 through an OpenAI-compatible endpoint with simple pay-as-you-go billing and a real-time usage dashboard. You point your existing OpenAI SDK at NyxForge's base_url and keep the rest of your code unchanged.
Do I need to change my code?
Only two values: the base URL and your API key. Because the endpoint is OpenAI-compatible, the official OpenAI SDKs and most existing integrations work as-is.
How does pricing work?
Pay-as-you-go: you top up a balance and pay only for the images you generate, with no subscription or monthly fee. See current rates on the pricing page at nyxforge.dev.
Is NyxForge affiliated with OpenAI?
No. NyxForge is an independent product operated by Gavin Schnee Studio and is not affiliated with, endorsed by, or sponsored by OpenAI. "gpt-image2" and other model names are trademarks of their respective owners and are referenced only to describe compatibility.
Ready to generate your first image?
Sign up to get your API key, integrate in minutes, and pay only for what you use.
NyxForge is an independent product operated by Gavin Schnee Studio and is built on the open-source New API project (QuantumNous). It is not affiliated with, endorsed by, or sponsored by OpenAI. “gpt-image2” and other model names are referenced solely to describe interoperability with their respective providers.