Gemini API

Interactions API는 Gemini 모델과 에이전트를 사용하여 빌드하는 가장 간단하고 효과적인 방법입니다. 상호작용 API 개요에서 자세히 알아보세요.

Gemini, Veo, Nano Banana 등을 사용하여 프롬프트에서 프로덕션까지 가장 빠르게 도달할 수 있는 경로를 제공합니다.

Python

from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.5-flash",
    input="Explain how AI works in a few words"
)

print(interaction.output_text)

자바스크립트

import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});

const interaction = await ai.interactions.create({
  model: "gemini-3.5-flash",
  input: "Explain how AI works in a few words",
});

console.log(interaction.output_text);

REST

curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gemini-3.5-flash",
    "input": "Explain how AI works in a few words"
  }'
레고 시작하기

빠른 시작 가이드에 따라 API 키를 가져오고 몇 분 만에 첫 번째 API 호출을 실행하세요.


모델 살펴보기

모두 보기

기능 살펴보기