Using Granite 3B Code on IBM watsonx

Implementation guide · Granite Code · IBM Research

ServerlessOpen Source

IBM watsonx exposes Granite 3B Code through model ID granite-3b-code. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-05-19. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at IBM watsonx and generate an API key.
  2. 2
    Use the IBM watsonx SDK or REST API to call granite-3b-code — see the documentation for request format.
  3. 3
    You'll be billed $0.60/1M input, $0.60/1M output tokens. See full pricing.

Code Examples

See IBM watsonx documentation for integration details.

Pricing on IBM watsonx

TypePrice (per 1M)
Input tokens$0.60
Output tokens$0.60

Capabilities

No model capability flags are currently sourced.

About Granite 3B Code

Granite 3B Code is IBM Research's Granite Code model. It offers an 8K-token context window.

Model Specs

Released2024-05-06
Parameters3B
Context8k
ArchitectureDecoder Only

Provider

IBM watsonx

IBM

Armonk, New York, United States