CodeGen2 (16B) API

Output
$0.21 / 1M

How to use CodeGen2 (16B) API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

CodeGen2 (16B) API Pricing

TypePrice
Input
$0.21 / 1M tokens
Output
$0.21 / 1M tokens

CodeGen2 (16B) vs other models

ModelInputOutputContextBest for
$0.21 / 1M
$0.21 / 1M
$0.84 / 1M
$0.84 / 1M
$0.815 / 1M
$0.815 / 1M
$0.84 / 1M
$0.84 / 1M
$0.315 / 1M
$0.315 / 1M

Start building with CodeGen2 (16B)

Get API Key
1000+ models, one API.