0.0
The project is in a healthy, maintained state
The imagen api Ruby SDK is the language-specific package for Imagen 4 on RunAPI. Use this imagen 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 Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.2.5
 Project Readme

RunAPI

Imagen 4 API SDKs for JavaScript, Ruby, and Go on RunAPI.

npm RubyGems Go Reference License


The imagen api SDK packages JavaScript, Ruby, and Go clients for Imagen 4 on RunAPI. Use this imagen api SDK for text-to-image and remix image workflows that need typed installs, JSON request bodies, task polling, and consistent RunAPI errors across services.

The public model page is https://runapi.ai/models/imagen-4; variant pages below carry pricing, rate-limit, and commercial-usage details. The public imagen-4-sdk repository groups the JavaScript, Ruby, and Go packages for this model.

Install

npm install @runapi.ai/imagen-4
gem install runapi-imagen-4
go get github.com/runapi-ai/imagen-4-sdk/go@latest

What you can build

  • Build creative tools, agent pipelines, and production integrations with the imagen api SDK.
  • Keep one model-specific repository while installing only the language package your app needs.
  • Use create for submit-only jobs, get for status lookup, and run for submit-and-poll scripts.
  • Handle authentication, validation, rate limits, insufficient credits, task failures, and polling timeouts through RunAPI SDK errors.

The JavaScript client exposes text-to-image and remix-image resources, and the Ruby and Go packages mirror the same RunAPI task lifecycle.

JavaScript quick start

import { Imagen4Client } from '@runapi.ai/imagen-4';

const client = new Imagen4Client();

const task = await client.textToImage.create({
  // Pass the Imagen 4 request body documented at https://runapi.ai/docs#imagen-4.
});

const status = await client.textToImage.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.

Repository layout

  • js/ publishes @runapi.ai/imagen-4.
  • ruby/ publishes runapi-imagen-4 when RubyGems publishing resumes.
  • go/ publishes github.com/runapi-ai/imagen-4-sdk/go and depends on github.com/runapi-ai/core-sdk/go.

Public links

Pricing and variants

Use the most specific imagen api variant page for pricing, rate limits, and commercial usage:

Default pricing link for the imagen api SDK: https://runapi.ai/models/imagen-4/imagen-4

FAQ

Which package should I install for imagen api work?

Install the model package for your language: @runapi.ai/imagen-4, runapi-imagen-4, or github.com/runapi-ai/imagen-4-sdk/go. Install core SDK packages only when you are building shared SDK infrastructure.

Where should public links point?

Primary imagen api links point to https://runapi.ai/models/imagen-4. Pricing and usage-policy links point to variant pages such as https://runapi.ai/models/imagen-4/imagen-4, and broad browsing points to https://runapi.ai/models.

License

Licensed under the Apache License, Version 2.0.