Glyph suggests emoji that match a message, a channel name or a reaction. It searches every standard emoji (smileys, people, animals, food, travel, objects, symbols) by meaning, not by keyword, so a message doesn't need to name the thing to find it.
Use it
curl https://labs.greatwork.company/v1/run \
-H "Authorization: Bearer $GWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glyph-1",
"input": "we finally shipped the new release"
}'const res = await fetch("https://labs.greatwork.company/v1/run", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GWL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "glyph-1",
"input": "we finally shipped the new release"
}),
});
const { output, usage } = await res.json();import os, requests
res = requests.post(
"https://labs.greatwork.company/v1/run",
headers={"Authorization": f"Bearer {os.environ['GWL_API_KEY']}"},
json={
"model": "glyph-1",
"input": "we finally shipped the new release"
},
)
output = res.json()["output"]Set GWL_API_KEY to a key from your dashboard. The bare name glyph works too and follows new versions.
Options
input: A short text (string or array of up to 64). The first 1,000 characters are read.
| Name | Type | Default | What it does |
|---|---|---|---|
top_k | integer | 5 | How many emoji to return. |
Output
| Field | Type | Meaning |
|---|---|---|
emojis | object[] | emoji, name, score, best first. |
Every response wraps this in {"id", "model", "output", "usage": {"units", "unit", "cost_usd"}, "latency_ms"}. Send an array as input and output is an array in the same order.
Examples
Shipped
{
"model": "glyph-1",
"input": "we finally shipped the new release"
}{
"emojis": [
{
"emoji": "đĻ",
"name": "package",
"score": 0.8204
},
{
"emoji": "đ",
"name": "ledger",
"score": 0.8192
},
{
"emoji": "đ",
"name": "NEW button",
"score": 0.8156
},
{
"emoji": "đ",
"name": "light rail",
"score": 0.8137
},
{
"emoji": "âšī¸",
"name": "information",
"score": 0.8124
}
]
}Captured on our production servers: 22 ms, 1 text, $0.00001.
Coffee
{
"model": "glyph-1",
"input": "need coffee before this meeting",
"top_k": 3
}{
"emojis": [
{
"emoji": "â",
"name": "hot beverage",
"score": 0.834
},
{
"emoji": "đ¤",
"name": "handshake",
"score": 0.8268
},
{
"emoji": "đĩ",
"name": "teacup without handle",
"score": 0.8253
}
]
}Captured on our production servers: 18 ms, 1 text, $0.00001.
Batch
{
"model": "glyph-1",
"input": [
"happy birthday!",
"the build is broken again",
"pizza party friday"
],
"top_k": 3
}[
{
"emojis": [
{
"emoji": "đ",
"name": "balloon",
"score": 0.8613
},
{
"emoji": "đ",
"name": "ribbon",
"score": 0.8529
},
{
"emoji": "đ",
"name": "birthday cake",
"score": 0.8457
}
]
},
{
"emojis": [
{
"emoji": "đ§",
"name": "construction",
"score": 0.8345
},
{
"emoji": "đ",
"name": "factory",
"score": 0.8267
},
{
"emoji": "đ¨",
"name": "hammer",
"score": 0.8255
}
]
},
{
"emojis": [
{
"emoji": "đ",
"name": "pizza",
"score": 0.8396
},
{
"emoji": "đ¤",
"name": "fried shrimp",
"score": 0.812
},
{
"emoji": "đĨ",
"name": "fish cake with swirl",
"score": 0.81
}
]
}
]Captured on our production servers: 37 ms, 3 texts, $0.00003.
Good for
- Suggest reactions in a chat app
- Pick an icon for a new channel or project
- Add emoji to notification titles
- Decorate generated social posts
Limits and caveats
- No flags or skin-tone variants; pick a skin tone in your UI.
Pricing
$0.01 per 1,000 texts. One unit per text. Failed calls aren't charged, and a call never costs more than its estimate (POST /v1/estimate tells you before you run it).
Built on
intfloat/multilingual-e5-small + Emojibase, 118M parameters. License: MIT. We run it on our servers.