gemini
autogen.oai.gemini.calculate_gemini_cost
API Reference
- autogen
- Overview
- Agent
- AgentNameConflictError
- AssistantAgent
- Cache
- ChatResult
- ContextExpression
- ConversableAgent
- GroupChat
- GroupChatManager
- InvalidCarryOverTypeError
- LLMConfig
- ModelClient
- NoEligibleSpeakerError
- OpenAIWrapper
- SenderRequiredError
- UndefinedNextAgentError
- UpdateSystemMessage
- UserProxyAgent
- a_initiate_swarm_chat
- a_run_swarm
- config_list_from_dotenv
- config_list_from_json
- config_list_from_models
- config_list_gpt4_gpt35
- config_list_openai_aoai
- filter_config
- gather_usage_summary
- get_config_list
- initiate_chats
- register_function
- run_swarm
- agentchat
- agents
- browser_utils
- cache
- code_utils
- coding
- doc_utils
- events
- exception_utils
- fast_depends
- formatting_utils
- graph_utils
- import_utils
- interop
- io
- json_utils
- llm_config
- logger
- math_utils
- mcp
- messages
- oai
- Overview
- AnthropicLLMConfigEntry
- AzureOpenAILLMConfigEntry
- BedrockLLMConfigEntry
- CerebrasLLMConfigEntry
- CohereLLMConfigEntry
- DeepSeekLLMConfigEntry
- GeminiLLMConfigEntry
- GroqLLMConfigEntry
- MistralLLMConfigEntry
- OllamaLLMConfigEntry
- OpenAILLMConfigEntry
- TogetherLLMConfigEntry
- anthropic
- bedrock
- cerebras
- client
- client_utils
- cohere
- gemini
- gemini_types
- groq
- mistral
- oai_models
- ollama
- openai_utils
- together
- retrieve_utils
- runtime_logging
- token_count_utils
- tools
- types
gemini
autogen.oai.gemini.calculate_gemini_cost
calculate_gemini_cost
calculate_gemini_cost(
use_vertexai:Â bool,
input_tokens:Â int,
output_tokens:Â int,
model_name:Â str
) -> float
Name | Description |
---|---|
use_vertexai | Type: bool |
input_tokens | Type: int |
output_tokens | Type: int |
model_name | Type: str |
On this page