Zugang aus Übersee: www.kdjingpai.com
Ctrl + D Lesezeichen für diese Seite
Derzeitige Position:Abb. Anfang " AI-Antworten

Pollinations提供了哪些API接口?如何调用?

2025-08-28 2.5 K

Pollinations API接口详解

Pollinations提供丰富的API接口,完全免费用。开发者可以通过简单请求即可使用各种AI功能。

主要API端点包括:

  • Bilderzeugung::GET https://image.pollinations.ai/prompt/{prompt}
  • Textgenerierung::GET https://text.pollinations.ai/{prompt}
  • Audio-Erzeugung::GET https://text.pollinations.ai/{prompt}?model=openai-audio&voice={voice}
  • Modell Liste::GET https://text.pollinations.ai/models

Python调用示例::
如需通过Python下载生成的图片:

import requests
url = "https://pollinations.ai/p/夜晚星空"
response = requests.get(url)
with open("image.jpg", "wb") as f:
f.write(response.content)

React集成方法::
先安装:npm install @pollinations/react
Dann:

import { usePollinationsImage } from '@pollinations/react';
const imageUrl = usePollinationsImage("巴黎夜景", { width: 800 });

Empfohlen

Sie können keine AI-Tools finden? Versuchen Sie es hier!

Geben Sie einfach das Schlüsselwort Barrierefreiheit Bing-SucheDer Bereich KI-Tools auf dieser Website bietet eine schnelle und einfache Möglichkeit, alle KI-Tools auf dieser Website zu finden.

zurück zum Anfang

de_DEDeutsch