GPT Image API SDKs for JavaScript, Ruby, and Go on RunAPI.
The gpt image api SDK packages JavaScript, Ruby, and Go clients for GPT Image on RunAPI. Use this gpt image api SDK for text-to-image, image editing, and creative production workflows that need typed installs, JSON request bodies, task polling, and consistent RunAPI errors across services.
GPT Image belongs to the OpenAI catalog on RunAPI. The public model page is https://runapi.ai/models/gpt-image and carries pricing, rate-limit, and commercial-usage details. The public gpt-image-sdk repository groups the JavaScript, Ruby, and Go packages for this model.
npm install @runapi.ai/gpt-image
gem install runapi-gpt-image
go get github.com/runapi-ai/gpt-image-sdk/go@latest- Build product imagery, creative automation, design previews, and agent image workflows with the gpt image api SDK.
- Keep one model-specific repository while installing only the language package your app needs.
- Use
createfor submit-only jobs,getfor status lookup, andrunfor submit-and-poll scripts. - Handle authentication, validation, rate limits, insufficient credits, task failures, and polling timeouts through RunAPI SDK errors.
The JavaScript client exposes generations, edits resources, and the Ruby and Go packages mirror the same RunAPI task lifecycle.
import { GptImageClient } from '@runapi.ai/gpt-image';
const client = new GptImageClient();
const task = await client.generations.create({
// Pass the GPT Image request body documented at https://runapi.ai/docs#gpt-image.
});
const status = await client.generations.get(task.id);For short scripts, use run with the same JSON body to create the task and wait for completion. For web request handlers, prefer create plus webhook or later get polling so the server does not hold a worker open.
js/publishes@runapi.ai/gpt-image.ruby/publishesrunapi-gpt-imagewhen RubyGems publishing resumes.go/publishesgithub.com/runapi-ai/gpt-image-sdk/goand depends ongithub.com/runapi-ai/core-sdk/go.
- Model page: https://runapi.ai/models/gpt-image
- SDK docs: https://runapi.ai/docs#sdk-gpt-image
- Product docs: https://runapi.ai/docs#gpt-image
- SDK repository: https://github.com/runapi-ai/gpt-image-sdk
- Skill repository: https://github.com/runapi-ai/gpt-image
- Provider comparison: https://runapi.ai/providers/openai
- Full catalog: https://runapi.ai/models
Use the GPT Image model page for pricing, rate limits, and commercial usage: https://runapi.ai/models/gpt-image
Install the model package for your language: @runapi.ai/gpt-image, runapi-gpt-image, or github.com/runapi-ai/gpt-image-sdk/go. Install core SDK packages only when you are building shared SDK infrastructure.
Primary gpt image api links point to https://runapi.ai/models/gpt-image. Provider comparisons point to https://runapi.ai/providers/openai, and broad browsing points to https://runapi.ai/models.
Licensed under the Apache License, Version 2.0.