REPO STORY / 레포 이야기
a60au8/flux2-api-fr
FLUX 2 Pro 텍스트-이미지 생성 API 사용 가이드 및 가격 정보
01 / 뭐 하는 레포인가요?
어떤 일을
도와주나요?
FLUX 2 Pro는 Black Forest Labs의 AI 모델로, 텍스트 프롬프트에서 이미지를 생성합니다. 이 가이드는 APIMart라는 API 게이트웨이를 통해 해당 API를 호출하는 방법을 설명합니다. 단일 API 키로 FLUX 2 Pro와 300개 이상의 다른 AI 모델에 접근할 수 있으며, 메가픽셀당 종량제 요금(1MP $0.024부터)으로 이용합니다. curl 또는 Python 예제 코드가 포함되어 있으며, 최소 $1 충전으로 시작할 수 있습니다.
- 단일 API 키로 300개 이상의 AI 모델 접근
- 메가픽셀당 종량제 가격 (1MP $0.024부터)
- 비동기 task_id 폴링 기반 처리
02 / 내 상황에 맞을까?
이럴 때 써요,
선택 전에 확인해요.
이럴 때 써요
요약에 별도 활용 대상이 없어요. 위 설명과 GitHub 문서를 확인해 주세요.
이럴 땐 다시 확인해요
아래 준비 조건이 맞지 않으면 먼저 환경을 준비해 주세요.
- APIMart API 키 ($1 최소 충전 필요)
- curl 또는 Python 3.x 환경 (requests 라이브러리 필요)
깃밥 한국어 요약의 활용 예와 준비 조건을 옮겼어요.
03 / 시작하려면
첫 걸음,
차근차근.
준비할 것
- APIMart API 키 ($1 최소 충전 필요)
- curl 또는 Python 3.x 환경 (requests 라이브러리 필요)
- 환경변수 APIMART_API_KEY에 API 키를 설정합니다 (예:
export APIMART_API_KEY="your-key").
2a. curl로 이미지 생성을 요청합니다:
curl --request POST --url https://api.apimart.ai/v1/images/generations \
--header "Authorization: Bearer $APIMART_API_KEY" --header 'Content-Type: application/json' \
-d '{"model":"flux-2-pro","prompt":"A bamboo forest at sunrise, slow push-in","size":"1:1","resolution":"1K"}'
2b. 또는 Python으로 이미지 생성을 요청하고 완료를 기다립니다:
import os, time, requests
BASE = "https://api.apimart.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}", "Content-Type": "application/json"}
created = requests.post(f"{BASE}/images/generations", headers=HEADERS, timeout=60, json={
"model":"flux-2-pro", "prompt":"A bamboo forest at sunrise, slow push-in",
}).json()
task_id = created["data"]["id"]
while True:
task = requests.get(f"{BASE}/tasks/{task_id}", headers=HEADERS, timeout=60).json()["data"]
if task["status"] in ("completed", "failed"):
break
time.sleep(5)
print(task.get("cost"), task["result"]["images"][0]["url"])
명령은 기존 요약에 적힌 그대로예요. 실행하거나 설치 성공을 검증하지 않았어요. 공식 소요시간 미제시.
04 / 이웃 레포
어떤 레포와 연결될까요?
비교 연결망의 정적 스냅샷 · 관계 종류와 기록된 근거예요. 현재 공개된 레포만 표시해요.
a04qbov86mrd/wan-2-7-videoedit-api-ja ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api,image-editing
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api,image-editing)
연결망 스냅샷 원자료 ↗a3g9df6h4jh/nano-banana-2-1-api-id ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api,image-editing
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api,image-editing)
연결망 스냅샷 원자료 ↗a7m-7rm3vb/doubao-seedance-1-0-pro-api-pt ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api,image-editing
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api,image-editing)
연결망 스냅샷 원자료 ↗apimartlt3f/gemini-2.5-flash-image-preview-official-api-ja ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api,image-editing
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api,image-editing)
연결망 스냅샷 원자료 ↗apimart-12223wc/midjourney-api-access ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api)
연결망 스냅샷 원자료 ↗apimart-API-Gateway/grok-image-api ↗
구체 GitHub 토픽 공유: ai-api-gateway,ai-image-api,apimart,image-api
repos.topics 교집합 (ai-api-gateway,ai-image-api,apimart,image-api)
연결망 스냅샷 원자료 ↗