Get started
DeepInfra
DeepInfra

Google/gemma 4 31B It Turbo

Google/gemma 4 31B It Turbo is a large language model by DeepInfra. Priced at $0.12 per million input tokens and $0.37 per million output tokens, it is one of the most cost-efficient options in its class. Access Google/gemma 4 31B It Turbo through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "deepinfra/google/gemma-4-31B-it-turbo-a", "model_id": "deepinfra/google/gemma-4-31B-it-turbo" }, "weight": 33 }, { "variant": { "variant_id": "deepinfra/stepfun-ai/Step-3.5-Flash-b", "model_id": "deepinfra/stepfun-ai/Step-3.5-Flash" }, "weight": 33 }, { "variant": { "variant_id": "deepinfra/XiaomiMiMo/MiMo-V2.5-c", "model_id": "deepinfra/XiaomiMiMo/MiMo-V2.5" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Google/gemma 4 31B It Turbo pricing and providers

Access Google/gemma 4 31B It Turbo through DeepInfra via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
DeepInfraDeepInfra$0.12$0.37

Other DeepInfra models available through Inworld

Compare Google/gemma 4 31B It Turbo with other DeepInfra models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
DeepInfraStepfun Ai/Step 3.5 Flash$0.10$0.30
DeepInfraXiaomiMiMo/MiMo V2.5$0.40$2.00

Start building with Google/gemma 4 31B It Turbo

Access Google/gemma 4 31B It Turbo and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Google/gemma 4 31B It Turbo by DeepInfra — Pricing, Specs & API Access | Inworld