{"input_schema":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true,"not":{"anyOf":[{"required":["wire"]},{"required":["path"]},{"required":["body"]}]}},{"type":"object","properties":{"wire":{"const":"openai"},"path":{"const":"/v1/chat/completions"},"body":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true}},"required":["wire","path","body"],"additionalProperties":false}],"description":"Text uses the default native operation. A native object uses that same default; an explicit {wire,path,body} envelope selects a registered operation. The product supplies the model field."},"output_schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"description":"Native response object when inline; larger and streaming output uses the Run artifact."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_completion_tokens."},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for response_format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."},"native_operations":[{"wire":"openai","path":"/v1/chat/completions","default":true,"input_schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true},"output_schema":{"type":"object","additionalProperties":true,"description":"Native openai response for /v1/chat/completions; streaming output is available through the Run artifact and events."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_completion_tokens."},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for response_format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."}}],"id":"ibm-granite/granite-4.2-8b","object":"model","owned_by":"ibm-granite","type":"language","name":"Granite 4.2 8B","description":"Granite 4.2 8B is a dense reasoning model from IBM.","context_length":131072,"max_output_tokens":117964,"input_modalities":["text"],"output_modalities":["text"],"wires":["openai"],"aliases":["ibm-granite/granite-4.2-8b","granite-4.2-8b"],"pricing":{"input":"0.00000011605","output":"0.000000290125","input_cache_read":"0.000000058025","input_cache_write":"0.00000011605"},"list_pricing":{"input":"0.00000011605","output":"0.000000290125","input_cache_read":"0.000000058025","input_cache_write":"0.00000011605"}}