> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # APIType Type of API used for the generation ## Example Usage ```go theme={null} import ( "github.com/OpenRouterTeam/go-sdk/models/components" ) value := components.APITypeCompletions // Open enum: custom values can be created with a direct type cast custom := components.APIType("custom_value") ``` ## Values | Name | Value | | -------------------- | ----------- | | `APITypeCompletions` | completions | | `APITypeEmbeddings` | embeddings | | `APITypeRerank` | rerank | | `APITypeTTS` | tts | | `APITypeSTT` | stt | | `APITypeVideo` | video | | `APITypeImage` | image |