Flux Kontext API SDKs for JavaScript, Ruby, and Go on RunAPI.
The flux kontext api SDK packages JavaScript, Ruby, and Go clients for Flux Kontext on RunAPI. Use this flux kontext api SDK for text-to-image, source-image editing, and creative production workflows that need typed installs, JSON request bodies, task polling, and consistent RunAPI errors across services.
Flux Kontext belongs to the Black Forest Labs catalog on RunAPI. The public model page is https://runapi.ai/models/flux-kontext; variant pages below carry pricing, rate-limit, and commercial-usage details. The public flux-kontext-sdk repository groups the JavaScript, Ruby, and Go packages for this model.
npm install @runapi.ai/flux-kontext
gem install runapi-flux-kontext
go get github.com/runapi-ai/flux-kontext-sdk/go@latest- Build product imagery, creative automation, design previews, and agent image workflows with the flux kontext 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 resources, and the Ruby and Go packages mirror the same RunAPI task lifecycle.
import { FluxKontextClient } from '@runapi.ai/flux-kontext';
const client = new FluxKontextClient();
const task = await client.generations.create({
// Pass the Flux Kontext request body documented at https://runapi.ai/docs#flux-kontext.
});
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/flux-kontext.ruby/publishesrunapi-flux-kontextwhen RubyGems publishing resumes.go/publishesgithub.com/runapi-ai/flux-kontext-sdk/goand depends ongithub.com/runapi-ai/core-sdk/go.
- Model page: https://runapi.ai/models/flux-kontext
- SDK docs: https://runapi.ai/docs#sdk-flux-kontext
- Product docs: https://runapi.ai/docs#flux-kontext
- SDK repository: https://github.com/runapi-ai/flux-kontext-sdk
- Skill repository: https://github.com/runapi-ai/flux-kontext
- Provider comparison: https://runapi.ai/providers/black-forest-labs
- Full catalog: https://runapi.ai/models
Use the most specific flux kontext api variant page for pricing, rate limits, and commercial usage:
Default pricing link for the flux kontext api SDK: https://runapi.ai/models/flux-kontext/pro
Install the model package for your language: @runapi.ai/flux-kontext, runapi-flux-kontext, or github.com/runapi-ai/flux-kontext-sdk/go. Install core SDK packages only when you are building shared SDK infrastructure.
Primary flux kontext api links point to https://runapi.ai/models/flux-kontext. Pricing and usage-policy links point to variant pages such as https://runapi.ai/models/flux-kontext/pro. Provider comparisons point to https://runapi.ai/providers/black-forest-labs, and broad browsing points to https://runapi.ai/models.
Licensed under the Apache License, Version 2.0.