モデル比較

Claude Fable 5 vs DeepSeek V4 Flash

料金・コンテキスト長・実際の回答で比較(2026年8月時点)

Claude Fable 5(Anthropic)とDeepSeek V4 Flash(DeepSeek)を、FastMetalのゲートウェイで実際に呼び出せる条件で比較します。どちらも同じOpenAI互換エンドポイントとAPIキーから利用でき、切り替えは model の文字列を変えるだけです。

スペックと料金

anthropic logoClaude Fable 5deepseek logoDeepSeek V4 Flash
提供元AnthropicDeepSeek
入力(100万トークンあたり)¥1,787¥16.08
出力(100万トークンあたり)¥8,935¥32.17
想定コスト(入力1,000・出力500トークン × 1,000回)¥6,255¥32
コンテキスト長1,000,000 トークン1,048,576 トークン
リリース日2026/6/92026/4/24
入力モダリティtext, image, filetext
アリーナ 総合#1 · ELO 1,508#79 · ELO 1,436
アリーナ 日本語#1 · ELO 1,529#67 · ELO 1,390
アリーナ コーディング#2 · ELO 1,552#80 · ELO 1,484

料金はFastMetalの円建て単価(税別)。アリーナ順位は公開リーダーボードの最新取得時点の値です。

どちらを選ぶべきか

  • 料金重視ならDeepSeek V4 Flash。出力100万トークンあたり¥32.17で、Claude Fable 5より100%安くなります。
  • 総合の評価はアリーナ順位でClaude Fable 5が上です(1位。DeepSeek V4 Flashは79位)。
  • 日本語の評価はアリーナ順位でClaude Fable 5が上です(1位。DeepSeek V4 Flashは67位)。
  • コーディングの評価はアリーナ順位でClaude Fable 5が上です(2位。DeepSeek V4 Flashは80位)。
  • 長い文書を扱うならDeepSeek V4 Flash。コンテキスト長は1,048,576トークンで、Claude Fable 5の1,000,000トークンより広くとれます。
  • 迷ったら両方を同じキーで試せます。model の文字列を変えるだけで切り替わり、料金はそれぞれの単価で従量課金されます。

同じプロンプトへの実際の回答

FastMetalのゲートウェイが返した回答をそのまま並べています。ベンチマークの数字ではなく、実際の出力です。

このエラーをデバッグして

以下のエラーがPythonアプリケーションで発生しています。原因を特定して修正してください。 Traceback (most recent call last): File "app.py", line 23, in get_user_orders total = sum(order["price"] * order["quantity"] for order in orders) TypeError: unsupport…

Claude Fable 5

# エラーの原因 ``` TypeError: unsupported operand type(s) for *: 'str' and 'int' ``` このエラーは、`order["price"]` が **文字列(str)型** で返ってきているため、整数(int)との掛け算ができずに発生しています。 ## なぜ price が文字列になるのか 主な原因として以下が考えられます: 1. **DBのカラム型が文字列型**(`VARCHAR` / `TEXT`)で定義されている 2. **DECIMAL型をドライバが文字列として返す**(一部のMySQLドライバや設定で発生) 3. **SQLiteなど型が緩いDB**に文字列として保存されている # 修正方法 ## 方法1: アプリケーション側で型変換する(即効性のある対処) ```python from decimal import Decimal def get_user_orders(user_id): orders = db.query("SELECT price, quantity FROM orders WHERE user_id = %s", user_id) total = sum(Decimal(order["price"]) * int(order["quantity"]) for order in orders) return {"user_id": user_id, "total": total, "orders": orders} ``` > 💡 金額…
応答時間 19.6秒出力 1132 トークン

DeepSeek V4 Flash

The error occurs because the `price` field returned by the database query is a **string** (e.g., `'19.99'`), not a numeric type. In Python, multiplying a string by an integer is actually valid (it repeats the string), but the intended operation is numeric multiplication. The error message `TypeError: unsupported operand type(s) for *: 'str' and 'int'` is misleading because string * int is allowed, but it may arise if the string contains non‑numeric characters or if the database driver uses a custom type that behaves like a string. Regardless, the fix is to convert `price` to a numeric type (e.g., `float` or `Decimal`) before multiplication. ### Corrected code: ```python def get_user_orders(…
応答時間 40.9秒出力 4846 トークン

コードレビュー

以下のTypeScript関数をレビューして、可読性・パフォーマンス・ベストプラクティスの観点から改善点を提案してください。 async function fetchAllUsers(page: number = 1): Promise<any[]> { let allUsers: any[] = []; let hasMore = true; let currentPage = page; while (hasMo…

Claude Fable 5

# コードレビュー 全体的にロジックは正しく動作しますが、型安全性・エラーハンドリング・可読性の面で改善の余地があります。以下、観点別に指摘します。 --- ## 🔴 重要度:高 ### 1. `any` 型の使用(型安全性) TypeScript の利点が失われています。API レスポンスと戻り値の型を定義しましょう。 ```typescript interface ApiUser { id: string; first_name: string; last_name: string; email: string; status: "active" | "deleted" | string; } interface UsersResponse { users: ApiUser[]; } interface User { id: string; name: string; email: string; } ``` ### 2. エラーハンドリングの欠如 `response.ok` のチェックがないため、404 や 500 が返っても `data.users` にアクセスして実行時エラーになります。 ```typescript if (!response.ok) { throw new Error(`Failed to fetch users: ${response.status} ${response.statusText}`); } ``` ### 3. 無限ループのリスク API が常に 100 件返し続け…
応答時間 25.4秒出力 1719 トークン

DeepSeek V4 Flash

以下に、可読性・パフォーマンス・ベストプラクティスの観点から改善点を提案します。 ## 改善点一覧 ### 1. 型の明確化 (可読性・安全性) ```typescript // 改善前 async function fetchAllUsers(page: number = 1): Promise<any[]> { // 改善後 interface UserResponse { id: number; first_name: string; last_name: string; email: string; status: string; } interface ApiResponse { users: UserResponse[]; total?: number; hasMore?: boolean; } interface ProcessedUser { id: number; name: string; email: string; } async function fetchAllUsers(page: number = 1): Promise<ProcessedUser[]> { ``` ### 2. エラーハンドリングの追加 (ベストプラクティス) ```typescript async function fetchPage(currentPage: number): Promise<ApiResponse> { const response = await fetch(`/api/users?pag…
応答時間 21.5秒出力 1522 トークン

SQLクエリの最適化

以下のSQLクエリは500万行のテーブルに対して実行すると30秒以上かかります。最適化してください。 SELECT p.product_name, c.category_name, COUNT(o.order_id) as order_count, SUM(o.amount) as total_sales, AVG(r.rating) as avg_rating FROM products p LEFT JOIN…

Claude Fable 5

# SQLクエリの最適化 ## 現在のクエリの問題点 ### 1. 【最重要】ファンアウト問題(結果の重複による誤集計) `order_details` と `reviews` を同時にJOINすると、**行が掛け算的に増殖**します。 例:ある商品に注文明細が100件、レビューが20件ある場合、JOIN後は **100 × 20 = 2,000行** になります。その結果: - `COUNT(o.order_id)` → 実際の100倍に膨張 - `SUM(o.amount)` → 20倍に水増しされた誤った値 - `AVG(r.rating)` → 重み付けが歪む **性能問題以前に、集計結果自体が間違っています。** ### 2. LEFT JOINが実質INNER JOINになっている ```sql LEFT JOIN orders o ON ... WHERE o.created_at >= '2024-04-01' -- ← NULLの行が除外される ``` WHERE句で `o.created_at` を参照すると、注文がない商品(`o` がNULL)が除外され、LEFT JOINの意味が失われます。意図を明確にしないとオプティマイザにも人間にも誤解を招きます。 ### 3. インデックス不足 JOINキーと絞り込み条件にインデックスがなく、フルスキャン+ハッシュ結合が多発します。 ### 4. GROUP BYのキーが非効率 `product_name` は重複の可能性があり、文字列でのグループ化はIDより遅くなります。 ---…
応答時間 43.6秒出力 1834 トークン

DeepSeek V4 Flash

このクエリは、500万行のテーブルに対して非効率な結合・集計・ソートを行っているため、30秒以上かかっています。以下の改善策を実施することで、処理時間を大幅に短縮できます。 ## 1. インデックスの追加 現在のインデックス(products(id)、orders(order_id))だけでは、WHERE句や結合に必要な絞り込みができていません。以下を追加します。 ```sql -- products: WHERE句のフィルタと結合キー用 CREATE INDEX idx_products_is_active_id ON products (is_active, id); -- order_details: product_idでの結合を高速化 CREATE INDEX idx_order_details_product_id ON order_details (product_id); -- orders: 結合とフィルタ条件(status, created_at)をカバー CREATE INDEX idx_orders_status_created_at ON orders (status, created_at, order_id); -- reviews: 結合用 CREATE INDEX idx_reviews_product_id ON reviews (product_id); ``` ## 2. LEFT JOINの見直し(実質INNER JOINになっている) 現在のクエリは `LEFT JOIN orders ... AND o.status =…
応答時間 61.4秒出力 3026 トークン

他のプロンプトでも比較する →

よくある質問

Claude Fable 5とDeepSeek V4 Flash、料金はどちらが安いですか?
出力100万トークンあたりClaude Fable 5は¥8,935、DeepSeek V4 Flashは¥32.17で、DeepSeek V4 Flashの方が安くなります(FastMetalの円建て単価・税別)。
Claude Fable 5とDeepSeek V4 Flashのコンテキスト長の違いは?
Claude Fable 5は1,000,000トークン、DeepSeek V4 Flashは1,048,576トークンです。
Claude Fable 5とDeepSeek V4 Flash、評価が高いのはどちらですか?
公開アリーナの順位ではClaude Fable 5が上です(Claude Fable 5 1位、DeepSeek V4 Flash 67位)。順位はリーダーボードの更新で変わります。
Claude Fable 5とDeepSeek V4 Flashを同じAPIキーで使えますか?
はい。FastMetalのOpenAI互換エンドポイントで、model に "anthropic-claude-fable-5" または "deepseek-v4-flash" を指定するだけで切り替えられます。料金はそれぞれの単価で、同じ前払い残高から従量課金されます。

どちらも同じAPIキーで試せます

アカウントを作成してクレジットをチャージすれば、Claude Fable 5とDeepSeek V4 FlashをブラウザのチャットとAPIの両方から呼び出せます。月額料金はありません。

Claude Fable 5の他の比較

DeepSeek V4 Flashの他の比較