Claude Fable 5.1Interfaces and refactoring
Anthropic's model for long coding work: front-end, reworking large components, step-by-step changes
Price shown before you run · One-time payment, no auto-renewal
Build a product card in HTML and CSS: photo, name, price, an "Add to cart" button; one column on phones. Code only, keep it short.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Product Card</title>
<style>
body {
margin: 0;
padding: 1rem;
font-family: system-ui, sans-serif;
background: #f4f4f5;
}
.card {
display: flex;
max-width: 640px;
margin: auto;
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.card img {
width: 45%;
object-fit: cover;
}
.info {
padding: 1.25rem;
display: flex;
flex-direction: column;
gap: .5rem;
}
.info h2 { margin: 0; font-size: 1.25rem; }
.price { font-size: 1.1rem; font-weight: 600; color: #16a34a; }
button {
margin-top: auto;
padding: .75rem;
border: none;
border-radius: 8px;
background: #2563eb;
color: #fff;
font-size: 1rem;
cursor: pointer;
}
button:hover { background: #1d4ed8; }
@media (max-width: 600px) {
.card { flex-direction: column; }
.card img { width: 100%; height: 220px; }
}
</style>
</head>
<body>
<article class="card">
<img src="https://picsum.photos/400/400" alt="Wireless headphones">
<div class="info">
<h2>Wireless Headphones</h2>
<p>Noise-cancelling, 30-hour battery, Bluetooth 5.3.</p>
<span class="price">$89.99</span>
<button type="button">Add to cart</button>
</div>
</article>
</body>
</html>
The Claude family
Fable for long processes, Sonnet for single fixes, Opus for the hardest problems
Interface work
How Fable splits a big component and checks a site for accessibility
A 600-line React component holds a form, data loading and validation in one file. How do I split it step by step without breaking anything?
The key is to extract in small, verifiable moves - each step leaves the app working and committable. Here's an order that minimizes risk.
Step 0: Build a safety net first
Before touching anything:
- Add a characterization test if there isn't one. It doesn't need to be beautiful - render the component, fill the form, submit, assert the request payload and the rendered validation errors. This is your tripwire.
- Snapshot current behavior you care about: what happens on load, on invalid input, on API failure, on success.
- Commit. Every step below should be its own commit so you can bisect if something breaks.
Step 1: Read it and draw boundaries (no code changes)
Mark up the file mentally or with comments into roughly:
What 7 things should I check so a site works well for people with low vision? Short, in bullet points.
- Color contrast - text meets at least 4.5:1 (3:1 for large text); UI controls and icons meet 3:1.
- Text resizing - content stays readable and functional when zoomed to 200% (ideally 400%) without horizontal scrolling or overlap.
- Don't rely on color alone - errors, links, and states also use text, icons, underlines, or patterns.
- Focus indicators - visible, high-contrast focus outlines on all interactive elements.
- Readable typography - adequate base font size (16px+), line height ~1.5, no justified text, generous spacing.
- Reflow and layout - responsive design that works at narrow widths/high zoom; no content locked in fixed-size containers.
- User customization - respect browser/OS settings (font size, high-contrast mode, dark mode); offer a text-only or simplified view if possible.
Documents and tables
- Upload a PDF or a document - the model reads it and answers from the text
- A short summary, key numbers and dates
- Compares two versions and shows what changed
- Try Claude Fable 5.1
What Fable can do
- 1MContext tokens: long chats and big files
- PhotosUnderstands images and screenshots
- PDFReads documents
- SearchWeb search on a toggle
- ≈ 7.7 tokensPrice of one run
How to use Claude Fable 5.1
- 1Write a questionA task, text or code. Attach a file or a photo if needed
- 2Check the priceThe request price is on the button before you send
- 3Get the answerAsk to rewrite, refine or keep the conversation going
Also in your plan
How much it costs
- per typical answer (1,500 input and 700 output model tokens)
- ≈ 7.7 tokens
The exact price is on the button before you run it
Questions about Claude Fable 5.1
When should I choose Fable 5.1 over Sonnet 5.5?
When a task involves extended refactoring or a long workflow involving interfaces. Sonnet is better aligned with individual features and tightly scoped fixes.
Can I give Fable screenshots and a technical specification?
Yes. The model understands images and reads files, including PDFs. Specify which interface details are mandatory and which changes are allowed.
Helpful guides
Guides and explainers from our blog
Try Claude Fable 5.1
Try for free

