立即开始
Gemini Tools

Gemini Generate Content

通过 Aident Loadout 使用 Gemini Tools 的 Gemini Generate Content。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5Aident 托管访问

服务提供商说明

Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fence…

价格与限制

价格
免费操作
统一支付
此免费操作无需统一支付

输入

  • modelstring
    Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (…
  • top_kinteger
    Top-k sampling parameter
  • top_pnumber
    Nucleus sampling parameter (0.0 to 1.0)
  • promptstring
    必填
    REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').
  • voice_namestring
    Available prebuilt voices for text-to-speech generation. Complete list of 30 official Gemini TTS voices as documented at: https://ai.google.dev/gemini-api/docs/speech-generation
  • temperaturenumber
    Controls randomness (0.0 to 2.0)
  • stop_sequencesarray
    Sequences where generation should stop
  • safety_settingsarray
    Safety filter settings
  • max_output_tokensinteger
    Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.
  • system_instructionstring
    System instruction to guide the model's behavior

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源