Gemini API

모든 신규 프로젝트에는 Interactions API를 사용하는 것이 좋습니다. 에이전트형 워크플로, 상태 관리, 최신 모델에 최적화되어 있습니다. 상호작용 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 호출을 실행하세요.


모델 살펴보기

모두 보기

기능 살펴보기