
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@runapi.ai/flux-kontext
Advanced tools
The flux kontext api JavaScript SDK is the language-specific package for Flux Kontext on RunAPI. Use this flux kontext api package for text-to-image, image editing, and creative production flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in JavaScript.
This flux kontext api README is the JavaScript package guide inside the public flux-kontext-sdk repository. For the repository overview, start at ../README.md; for model details, use https://runapi.ai/models/flux-kontext; for API reference, use https://runapi.ai/docs#flux-kontext; for SDK docs, use https://runapi.ai/docs#sdk-flux-kontext.
npm install @runapi.ai/flux-kontext
import { FluxKontextClient } from '@runapi.ai/flux-kontext';
const client = new FluxKontextClient();
const task = await client.generations.create({
// Pass the Flux Kontext JSON request body from https://runapi.ai/docs#flux-kontext.
});
const status = await client.generations.get(task.id);
Use create when you want to submit a task and return quickly, get when you need the latest task state, and run when a script should create and poll until completion. In web request handlers, prefer create plus webhook or later get polling so a worker is not held open.
Use the TypeScript types in src/types.ts and the resource classes under src/resources when building image applications. The available resources include generations. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.
Licensed under the Apache License, Version 2.0.
FAQs
RunAPI Flux Kontext SDK for text-to-image and source-image editing workflows in JavaScript, Python, Ruby, Go, Java, and PHP
The npm package @runapi.ai/flux-kontext receives a total of 9 weekly downloads. As such, @runapi.ai/flux-kontext popularity was classified as not popular.
We found that @runapi.ai/flux-kontext demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.