Skip to main content
IBM Granite-4.0-H-Small is a 32B parameter long-context instruct model. It excels at general text generation, instruction following, and conversational AI tasks with support for extended context lengths.

Try in playground

Test IBM Granite 4.0 in the Runpod Hub playground.

Request

All parameters are passed within the input object in the request body.
array
required
Array of message objects with role and content.
string
required
The role of the message author. Use system, user, or assistant.
string
required
The content of the message.
integer
default:"512"
Maximum number of tokens to generate.
float
default:"0.7"
Controls randomness in generation. Lower values make output more deterministic. Range: 0.0-1.0.
integer
default:"-1"
Seed for reproducible results. Set to -1 for random.
integer
default:"-1"
Restricts sampling to the top K most probable tokens.
float
default:"1"
Nucleus sampling threshold. Range: 0.0-1.0.

Response

string
Unique identifier for the request.
string
Request status. Returns COMPLETED on success, FAILED on error.
integer
Time in milliseconds the request spent in queue before processing began.
integer
Time in milliseconds the model took to generate the response.
string
Identifier of the worker that processed the request.
object
The generation result containing the text and usage information.
array
Array containing the generated text.
float
Cost of the generation in USD.
object
Token usage information.

Cost calculation

IBM Granite 4.0 charges $10.00 per 1M tokens. Example costs: