タッチペン 【2025年革新版 全機種対応】タブレット ペン スタイラスペン スマホ Type-C充電 超高精度 極細 12g超軽量 3つ交換用ペン先付き 互換ペン 電量表示/磁気吸着機能対応 軽量 耐摩 耐久 iPad・iPhone・Android・スマホ・タブレット用ペンシル 日本語取扱説明書付き
¥2,099 (2025年4月25日 13:05 GMT +09:00 時点 - 詳細はこちら価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点で当該の Amazon サイトに表示されている価格および発送可能時期の情報が適用されます。)【2025年新モデル】HDMIケーブル iPhone HDMI変換ケーブ ル 2m Digital AV変換アダプタLightning ライトニング 変換アダプター ミラーリング 電源不要 設定不要 携帯の画面をテ レビに映す 同画面テレビ接続 簡単接続 テレビに映す 音声同期出力 iPhone/iPad対応 映画/オフィス/ゲームに適用 iOS9.2 to iOS18に対応 [並行輸入品]
¥1,399 (2025年4月25日 13:08 GMT +09:00 時点 - 詳細はこちら価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点で当該の Amazon サイトに表示されている価格および発送可能時期の情報が適用されます。)
↓↓説明
ガイド
俺たちにできないことを平然とやってのける。そこに痺れる。憧れる。
要点
- gpt-image-1は で 「画像のChatGPT」 といえる存在
- APIから使えるようになったのは商用にも大きい
- 安全対策も万全(Moderationパラメータで調整可)
認証が必要(個人情報登録)
なんか、オーガナイゼーション認証が必要でした。犯罪に使われるからでしょうか?
とりあえず、マイナンバーカードでサクッと登録、個人情報を紐づけます。顔面の写真も撮られます。
いわゆる eKYCですね。
使い方
あとは、PlayGroundでプロンプト適当に入れると絵が生成されます。
PlayGroundだとNSFWっぽいのプロンプトはすぐ怒られます。
多分コンテンツ モデレーション(moderation)パラメータで倫理観をlowで落とせばOK?
API
APIはこんな感じ
Python
from openai import OpenAI
client = OpenAI()
response = client.images.generate(
model="gpt-image-1",
prompt="anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
n=1,
size="1024x1536",
quality="high"
)
Node.js
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const response = await openai.images.generate({
model: "gpt-image-1",
prompt: "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
n: 1,
size: "1024x1536",
quality: "high"
});
JSON
{
"model": "gpt-image-1",
"prompt": "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
"n": 1,
"size": "1024x1536",
"quality": "high"
}
Curl
curl https://api.openai.com/v1/images/generations
-H "Content-Type: application/json"
-H "Authorization: Bearer $OPENAI_API_KEY"
-d '{
"model": "gpt-image-1",
"prompt": "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
"n": 1,
"size": "1024x1536",
"quality": "high"
}' | jq -r '.data[0].b64_json' | base64 --decode > output.png
実際に API 使ってみた
普通に Curl
透過PNGを出す
“background”: “transparent”
コスト
結構高いw
最後に
AI情報発信してます!(1日二十円で読める
↓↓↓